if


Conditionally evaluates expressions.


$(IF, test, truePart [,falsePart])

 

If expr is nonzero, it evaluates and returns truePart. Otherwise, it evaluates and returns falsePart. Note that the branch not chosen by test  is not evaluated.

 

 

Examples

 

Code Returns
$(if,1,TRUE,FALSE) TRUE
$(if,0,TRUE,FALSE) FALSE
$(if,0,TRUE)

 

$(if,$(eq,$(getvar,clayer),0),CLAYER=0) CLAYER=0 or empty string if clayer<>0

See also...

DIESEL functions

 
© Bricsys NV. All rights reserved.