Will this code work?

Maybe a silly question… I haven’t got an mac computer but I want to know whether this code will work on iPod.

it’s just an easy if(GUI…):

//Do something

Yes that will work on iOS.

yes it will work, but you can always just test it out.