Can we set two value in switch case in expression

I have two value checkName and CheckStatus.Now I want to compare with different value.Can we set in expression two value checkName & checkstatus.
then compare like if CheckName=WebCheckName1 and CheckStatus=WebCheckStatus1
As mention in attachment. want to do with switchinstead of if condition

Hi,

It need a little trick to use switch activity instead of If activity. If you need to do it for some reason, the following will work, for example.
Note : It might be unrecommended from the view point of maintainability.

Type Argument : Int32
Expression:
CInt(CheckName=WebCheckName1)*-1+CInt(CheckStatus=WebCheckStatus1)*-2

  • Both are true , it returns 3. (11 as binary number )
  • Both are false, it returns 0. (00 as binary number)
  • One is true, other is false, it returns 1 or 2.

Regards,

2 Likes