User forums > Help

Variable expansion - Conditional evaluation

(1/1)

cichmen:
Hi,

I would like to do following construction in post-build step, but it does not work as I expect. It does not run PHP even $ACTIVE_EDITOR_EXT is php5.

$if($ACTIVE_EDITOR_EXT == 'php5'){PHP -l $ACTIVE_EDITOR_FILENAME}

Any advice?

mariocup:
Hi cichmen,

for example I am using in a post build step a command like:


--- Code: ---'[[ if (PLATFORM == PLATFORM_MSW) { print (_T("mkdir-mingw.exe")) } else { print (_T("mkdir")); } ]] -p lib/$(TARGET_NAME)'

--- End code ---

Try to use the print command and see if it works.

Navigation

[0] Message Index

Go to full version