Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Last active April 9, 2022 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffordp/9245df1dd6605a9f4ea3bda95d117a76 to your computer and use it in GitHub Desktop.
Save cliffordp/9245df1dd6605a9f4ea3bda95d117a76 to your computer and use it in GitHub Desktop.
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