Is null or empty - smbc-digital/form-builder GitHub Wiki
Is Null or Empty checks if a value is null or empy e.g foo = "" and true returns true while foo="pears" and false returns fals The condition syntax is:
New Syntax
{
"conditionType": "IsNullOrEmpty",
"comparisonValue": true,
"questionID" : "favorouriteFruit"
}
for "" this gives true for "apples" this gives false
New Syntax
{
"conditionType": "IsNullOrEmpty",
"comparisonValue": false,
"questionID" : "favorouriteFruit"
}
for "" this gives false for "apples" this gives true
Legacy Syntax
{
"isNullOrEmpty": true,
"questionID" : "favorouriteFruits"
}
{
"isNullOrEmpty": false,
"questionID" : "favorouriteFruits"
}
Legacy syntax is the one working currently