I am writing an app that uses IDE communicator to automate some stuff and it would be helpful if it could tell what the project type (desktop, web, etc) is. I see the CurrentBuildTargetIs* commands, but that is restricted to build steps, right?
I suppose I could check a project for a Session object since that would be web-only, and I would think there is something similar for an iOS or Android project.
If you prefix with # then the code is not included outside of the debugger. But if you don’t use the # command, you can do whatever you want ie
#If TargetMacOS Then
'only runs in macOS
MessageBox "Mac only"
#EndIf
If TargetMacOS Or TargetWindows Then
'runs in macOS or Windows
MessageBox "Mac and Windows only"
#If TargetMacOS Then
'do something for macOS only
#ElseIf TargetWindows Then
'do something for Windows only
#EndIf
End If