Uipath expected The name 'Mod' does not exist in the current context The left-hand side of an assignment must be a variable, property or indexer CHeck odd or even.xaml

Hi all.
I am trying to use the formula Num Mod 2=0.
But getting the below error.

Uipath expected The name ‘Mod’ does not exist in the current context The left-hand side of an assignment must be a variable, property or indexer CHeck odd or even.xaml

image

may we ask you if the project is set to c# or vb?

When c#: the modulo operator is %

1 Like

Use % as the mod operator.
The expression will become Num%2=0

4 Likes

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