I have two variables ‘usrpermnet’ and ‘usrpermdev’ that can have length of 0 or not. I want compare those length. I wrote this in tornado
if len(usrpermdev) > 0
usrperm = usrpermdev
else
usrperm = usrpermnet
but I have an error.
Which is the way in that I have to write? Thank you.
You’re missing the colons:
This has nothing to do with Tornado; it’s basic Python. You might want to have a look at the Python Tutorial.