preprocess icon indicating copy to clipboard operation
preprocess copied to clipboard

add an ifn for if not.

Open WORMSS opened this issue 10 years ago • 4 comments

Add the addition of @ifn SOME='thing' for if not.

WORMSS avatar Sep 15 '15 13:09 WORMSS

what about @if SOME != 'thing'?

Frizi avatar Sep 15 '15 13:09 Frizi

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.

WORMSS avatar Sep 15 '15 13:09 WORMSS

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.

Frizi avatar Sep 17 '15 20:09 Frizi

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.

WORMSS avatar Sep 18 '15 06:09 WORMSS