xsh:if

Usage

object xsh:if(object CONDITION, object YES, object NO)

Description

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.