Is the variable odd or even?

I want to add this as an event:

if (variable % 2 == 0) {
// do something
if (variable % 2 !=0 {
//do something

How can I do it?

By doing exactly what you said, checking if the value of a variable modulo 2 is equal to one in the compare two values condition

Could you show me graphically with events?

I can do it in code but I don’t understand how to do it in events