I have game with 3 version , i want to make an automatic go to function by detected the game version
v=gg.getTargetInfo() -- get the target
VN1="1.14.3.5.419705" -- game version 1
VN2="1.14.3.7.436693" -- game version 2
VN3="1.14.3.9.439281" -- game version 3
if v.processName~=VN1 then
HOME1() -- goto function game version 1
then else -- idk exactly the next command
if v.processName~=VN2 then
HOME2() -- goto function game version 2
then else -- idk exactly the next command
if v.processName~=VN3 then
HOME3() -- goto function game version 3
then else -- idk exactly the next command
os.exit() -- if all wrong os exit
end end
function HOME1() -- v1.14.3.5.419705
function HOME2() -- v1.14.3.7.436693
function HOME3() -- v1.14.3.9.439281