Difference between revisions of "Lua:targetIsAndroid"
Jump to navigation
Jump to search
(Initial page creation.) |
m (→Examples: Syntax Highlight.) |
||
| Line 11: | Line 11: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
if targetIsAndroid() then | if targetIsAndroid() then | ||
print("Target process is running on Android") | print("Target process is running on Android") | ||
| Line 17: | Line 17: | ||
print("Target process is not running on Android") | print("Target process is not running on Android") | ||
end | end | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Revision as of 23:32, 26 June 2026
Returns true if the target process is running on the Android operating system.
Function Parameters
This function has no parameters.
Returns
boolean — True if the target process is running on Android, otherwise false.
Examples
1 if targetIsAndroid() then
2 print("Target process is running on Android")
3 else
4 print("Target process is not running on Android")
5 end