if function

$(if, expr, dotrue [, dofalse])


Evaluates expressions and performs an action depending on whether a condition is true or false.


Example

$(if,$(<,(getvar,textsize),.5),$(+,(getvar,textsize),.5),~)

Tell me about...

DIESEL Functions