Switch statement Conditiom

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.

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

Hi @Rakesh_N1

Can you try below

Not String.IsNullOrEmpty(YourStringVariable)

@Rakesh_N1

Not String.IsNullOrEmpty(yourStringVariable)

use not String.IsNullOrEmpty(yourVariable)

in expression field

Hi Rakesh,

You can use Not String.IsNullOrEmpty(StringVariable) or also (stringvariable.trim.length>0)

Regards,
Aman