Logical NOT Operator - Where Applicable

I see example of use of Logical NOT { ! } used to indicate all traffic NOT P2P == as in

chain=forward connection-mark=!p2p_conn action=mark-packet …

I want to build an address-list of maybe 12 IP addresses and then have
and address-list of those addresses in my domain that are NOT in that list

If I create an address-list=main_IPs and then create a list = !main_IPs
there is an error… Do I need to make use of a { !main_IPs } reference elsewhere like in “src-address=!main_IPs” ?

In general when can I apply the { ! } NOT operator ?