I want to print only the even number in the Array, But i am getting this error when i am using MOD

Please tell me what is the mistake i am doing and what should i do.

@Bhagyaraj_Digumarthi

Instead of Numbers in For Each you have to write it as

Item Mod 2 = 0

Hope this helps you

Thanks

@Bhagyaraj_Digumarthi

Also For Each in Properties Type Argument should be Int32

Hope this helps you

Thanks

i tried it too, it is asking end of expression expected.

@Bhagyaraj_Digumarthi

Check as below

It’s working fine, Have you changed the Type Argument as Int32?

Thanks

1 Like

Notice the syntax error you’re making, you need a space between mod and 2

Thankyou so much for your time and energy.

1 Like

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