JungleDocs | IfEmpty function

In JungleDocs you can use the IfEmpty function to return certain values if one is empty. In this tutorial, you will learn how to do this.



IfEmpty(testValue; trueValue) – returns trueValue if testValue is empty (i.e., if it has a blank value in SharePoint). Otherwise, it returns testValue.

Example:

IfEmpty(Title; "Item has no title") - will return the text "Item has no title" if the Title field is empty. If it isn't, the Title field value will be displayed. 

IfEmpty(testValue; trueValue; falseValue)  – returns trueValue if testValue is empty. Otherwise, it returns falseValue.

Example:

IfEmpty(Title; "Item has no title"; "Approved") - will return the text "Item has no title" if Title field is empty. Otherwise, the result will be "Approved".

testValue and trueValue can be any expression, from a field name and a record set to constant values and other formulas.

Still need help? Contact Us Contact Us