I am trying to prevent empty string from being logged in a SQL database. If the program work correctly, it will see if two strings are matched. If the two string are matched, the string will be logged to database. If mismatched, the string should not be logged and produce an error message. The problems that I am facing is that the "Match Pattern.vi" produce an empty string if mismatched and still logged to the database. How can I prevent that from happening?
Solved! Go to Solution.
The typical way is to use the "offset past match" output and use Greater Or Equal To Zero. If that is TRUE, then log; if FALSE, do nothing. This can be easily accomplished with a simple Case Structure.
Did you try testing the string(s) using the Empty String? function on the Comparison Palette?