Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

String/Message Logic in VBAI

Solved!
Go to solution

Good day NI experts,

 

I have a little problem with String logic. What I mean is that I have two (2) string inputs. I have a priority and substitute string. My output message should be what the,

priority message contain. But in case priority message is empty, the output message should be the substitute string which is in my example "__".

 

Please refer to the attached image. Thank you very much.


Sincerely,

Andrei K.

0 Kudos
Message 1 of 3
(2,666 Views)
Solution
Accepted by topic author andrake

You can use functions from the comparison palette to check if it's empty and use a backup string if the priority string is empty. See attached screenshot for an example.

 

Hope this helps,

Brad

Message 2 of 3
(2,659 Views)

Thank you very much Mr. Brad,

 

Very helpful as always.

 

Sincerely,

Andrei K.

0 Kudos
Message 3 of 3
(2,649 Views)