Solved "#if 1" equivalent in .pro file?
-
i am testing several conditions, but can't seem to figure out how to do a simple "if true" thing, equivalent to this:
#if 1 do upper stuff #else do lower stuff #endif
i tried this:
1 { do upper stuff } else { do lower stuff }
but that evaluates to false, doing the LOWER stuff.
-
Hi,
Did you try the if test function ?
-
like this?
if (1) { do upper stuff } else { do lower stuff }
yes i tried that, among several other flavors
-
Replace 1 by
true