Help with logic operators

Hello, is there a way to do a negative version of "~=" ?

Since Kustom does not have a separate weather code for Mostly Clear/Mostly Sunny it just assigns it to "CLEAR." However, I have icons for Mostly that I want to use.

My workaround is to check if the weather code is "CLEAR" and the weather condition contains the word "Mostly" then use the icons for "Mostly Sunny" and "Mostly Clear."

wi(code)=CLEAR & wi(cond)~=Mostly, (if(ai(isday) | gv(nightico)=0, gv(msun), gv(mclear)))

Got that part working but having trouble defining if the weather code is "CLEAR" and the weather condition does NOT contain the word "Mostly" then use the icons for "Sunny" and "Clear."

My reasoning for not using "gv(cond)!=Mostly Clear" is that some weather sources use "Clear" for both night and day but other use "Sunny" for day and "Clear" for night.

Any help would be greatly appreciated.

So this is what I came up with, probably not the most elegant solution but I think it works, maybe.

wi(code)=CLEAR & wi(cond)!=Mostly Clear & wi(cond)!=Mostly Sunny, (if(ai(isday) | gv(nightico)=0, gv(clear-d), gv(clear-n)))

Updated this solution to define Mostly Sunny/Clear based on the percentage of cloud coverage, so now it works across all weather sources.👌