AnsweredAssumed Answered

Question about Get System Platform?

Question asked by bdexter75 on May 15, 2014
Latest reply on May 15, 2014 by bdexter75


Question about Get System Platform?


     I’ve created a button on my main menu to take me to either a Windows based layout or an iPad based layout, using the following script.  However, when on my Windows machine it just takes me to my iPad layout. It doesn’t work on my iPad either. I employed Script Debugger to watch it step through the process and it clearly does not see my Windows environment.  Denno, in the post referred to below does something very similar, except he/she used numbers to accomplish the task.  My question then is: How does FM know what “Windows” or “iPad” or 1, 2, 3….is without them being predefined somewhere?  Is this why my script doesn’t work?

     If [Get (SystemPlatform) = “Windows”]

                     Go to Layout [“Desktop” (Desktop)]

                     Exit Script

     End If

     Go to Layout [“iPad” (iPad)]


Platform check script (executed OnLayoutEnter)

     if Get ( SystemPlatform ) = 3

     Go to Layout iPad Home

     End If