Last active
April 9, 2022 16:21
-
-
Save cliffordp/9245df1dd6605a9f4ea3bda95d117a76 to your computer and use it in GitHub Desktop.
Zoho Flow to check for blank value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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