#how do i use properties?

1 messages · Page 1 of 1 (latest)

wind flint
#

is not working

icy haven
#

It is an int and you are using it like a bool. So either change its type or add the == 0 or == 1 to the query

low mesa
#

if u exactly want to test if property is existing in entity then use q.has_property('my:property') it will return either true or false depending if it has

#

if u want to test property value, you will need to use q.property correctly, for example q.property('my:property') == 5 or any other testing operators you want to test and you can test for true, false or even a string 'I_am_Ssak'