object xsh:if(object CONDITION, object YES, object NO)
This function returns the YES object if CONDITION is an non-empty node-set or a string, boolean or integer evaluating to non-zero boolean. Otherwise the NO object is returned.
YES
CONDITION
NO