PDA

View Full Version : ??? $(if, $(=, $(getenv, r4n), pr), " ", FIX IT)



piper
2007-11-12, 06:11 PM
Howdy All Great & Powerful Diesel Guru's,

I am trying to add this as a field in a block.
The objective is to:
display nothing if the variable r4n = pr
display FIX IT if the variable is not pr or not set

After hours of trying different combinations of quotes, code & commas, all I get is:
$(IF,??)

Thanks in advance for your help.......

rkmcswain
2007-11-13, 12:52 PM
= is used to compare numbers.
eq is used to compare strings.

$(if, $(eq, $(getenv,r4n)," pr"), "", "FIX IT")

piper
2007-11-13, 02:45 PM
Thanks Much....

I came up with this and it works GREAT:

$(if, $(eq, $(getvar,users5), PR) , ,FIX IT)