hello friends ;
I am new a little bit in corona sdk and i faced issue in my code.
i wrote input ntaive text and i wont to comapre it with exact value (for example 10) , if the user write 10 will print (“the numbers are equal”) elseif print ("the numbers are not equal ")
but always is printed (“the numbers are not equal”) ?!!
this is some part of my code:
uInput= native.newTextField(155,180,180,30)
uInput.inputType = “number”
uInput:addEventListener(“userinput”,textLesitener)
UI=uInput.text
print (UI)
local function checkUser( )
if 10== UI then print ("the numbers are equal ")
else print ("the numbers are not equal ")
end
end
i hope to solve my problem
thanks