Difference between revisions of "Lua:targetIsAndroid"

From Cheat Engine
Jump to navigation Jump to search
(Initial page creation.)
 
m (Examples: Syntax Highlight.)
Line 11: Line 11:
  
 
===Examples===
 
===Examples===
<pre>
+
<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
</pre>
+
</syntaxhighlight>
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}

Revision as of 23:32, 26 June 2026

<> Lua API Reference

function targetIsAndroid() : boolean

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

Main Pages

Core Lua documentation entry points

Lua
Script Engine