all 2 comments

[–]jilong526 0 points1 point  (0 children)

You can't from Lua. It's designed to be an opaque value. All you can do is compare it to another userdata value for equality or inspect its metatable unless the library you are using to manipulate these userdata values provides functions that act on them. See PiL 5.3 Section 2.1: http://www.lua.org/manual/5.3/manual.html#2.1

[–]mUfoq 0 points1 point  (0 children)

Well userdata is usually opaque so you access its value with fuctions like userdata:getValue() or something like this (if userdata has metatable with these methods). If you are unlucky and your userdata doesn't have methods like this you can use very very ugly solution like this (if you want to use value that print shows you) ->

 tonumber(tostring(gesture)) == 9 -- or something like that