I am getting a request from mobile app. They are sending a variable isbookmarked = 1 or 0. I am checking in if statement.
if isbookmarked
do something
else
do something
end
The else part is never executed because '0' is not recognized as 'false'
How can I achieve this?
Aucun commentaire:
Enregistrer un commentaire