Switch activity

For Switch activity, please what does ‘compiler error encountered processing expression total mod 2. Option strict on disallows implicit conversions from Boolean to Int’. Mean

@Morgan7, Hi and welcome to the community

In simple words it means you cannot convert from Boolean type which is either True/False to an interger.

1 Like

What conndition u want to use in Switch?

1 Like

Hi @Morgan7,

If you are passing "Int’ varaiable to Switch Statement and Type of argument is "Boolen"then you will get error.

Change Type of argument to “int” and try it.


Thanks I appreciate it’s fine now

1 Like