Exrepssion switch statement

Hello I have a switch statement where i want to perform some task if a certaint variable has something.

My question its, What shall i insert in the expression field ? My variable its of type string and only want the cases to be executed if the variables has something in it

1 Like

use String.IsNullOrEmpty(strText) where strText is your string variable. in expression field and change type argument to boolean.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.