preprocess
preprocess copied to clipboard
add an ifn for if not.
Add the addition of @ifn SOME='thing' for if not.
what about @if SOME != 'thing'?
I tried that, it didn't seem to work. If != is already in the spec, then I will re-try my attempt, maybe I did something else wrong.
You can pretty much use any javascript there, as long as regex is able to pick it up. I'm using it like // @if !flags.myFeatureFlag, so not operator and complex objects are working as expected.
Thank you @frizi , I worked out its because we were doing some other operations on the files which were reading the original file so overrode my preprocess files. So yep, not bug, but a booboo my side.