Jump to content
  • 0

Condition Not Executing


krishnaraosv8

Question

--pubg mobile less recoil code
lon=nil

function lessrecoilsearch()
	if(lsearched=='false') then
		lsearched='true'
		gg.clearResults()
		gg.setRanges(gg.REGION_CODE_APP)
		gg.searchNumber("3.8126822e-21;-1.1144502e28;-2.0291021e20:9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
		lon=gg.getResults(551)
	end
end

--in the below code v.value is matching 3 conditions but its not entering into statement to modify value
--where i am doing wrong

for i, v in ipairs(lon) do
	if v.value == '3.8126822e-21' then
		v.value = '-9999'
	elseif v.value == '-1.1144502e28' then
		v.value = '-9998'
	elseif v.value == '-2.0291021e20:9' then
		v.value = '-9997'
	end
end
gg.setValues(lon)
gg.clearResults()
gg.toast("Less Recoil Activated!")

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

lon=nil

function lessrecoilsearch()
	if(lsearched=='false') then
		lsearched='true'
		gg.clearResults()
		gg.setRanges(gg.REGION_CODE_APP)
		gg.searchNumber("3.8126822e-21;-1.1144502e28;-2.0291021e20:9", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
		lon=gg.getResults(551)
	end
end

--in the below code v.value is matching 3 conditions but its not entering into statement to modify value
--where i am doing wrong

for i, v in ipairs(lon) do
	if v.value == '3.8126822e-21' then
		v.value = '-9999'
	elseif v.value == '-1.1144502e28' then
		v.value = '-9998'
	elseif v.value == '-2.0291021e20:9' then
		v.value = '-9997'
	end
end
gg.setValues(lon)
gg.clearResults()
gg.toast("Less Recoil Activated!")

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.