News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Variable expansion - Conditional evaluation

Started by cichmen, June 19, 2009, 09:29:50 AM

Previous topic - Next topic

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:


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


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