Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Zoho Flow to check for blank value
int ifStringIsBlankOneElseZero(string toCheck)
{
// This snippet: https://gist.github.com/cliffordp/9245df1dd6605a9f4ea3bda95d117a76
// https://www.zoho.com/deluge/help/functions/common/isnull-isblank-isempty-difference.html
// Unfortunately, isBlank() is not reliable.
if(isNull(toCheck) || isEmpty(toCheck))
{
// empty string, string of just spaces
return 1;
}
// any text or number (including zero)
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment