Is there anyway to put the following inside an 'IF' statement?

#set compiler variable [PRG_FLDR] = "<somefoldername>"

I have tried 'If' and '#If' but they seem to be ignored.

TIA,

Bob