How to know on wich platform my script is running.

Discuss any general programming issues here
Post Reply
Pierre55
Posts: 44
Joined: Sat Apr 01, 2017 4:25 pm

How to know on wich platform my script is running.

Post by Pierre55 » Fri Apr 12, 2019 3:55 pm

Hi,

Since some commands like PermissionRequest() are only for one platform like this one that seems for Android I would like to find a way to determine on wich platform my script is running so I can execute these fonctions only if they are in the correct environnement.

Thank you.

Pierre

User avatar
airsoftsoftwair
Posts: 3075
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to know on wich platform my script is running.

Post by airsoftsoftwair » Fri Apr 12, 2019 5:33 pm

Try looking at the "Platform" tag returned by GetVersion().

Post Reply