namespace and public static class

Hello,

How can I create an if like the one in the image below? I am new to this and it seems that the namespace and the public static class is not allowing me, because I used that function on other cases without limitations.

Thanks.

The problem is here, you are trying to write a function into your “class”.

You have to declare a function before writing the logic, and then write the logic in its body

1 Like

Thanks for the help.