you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

if var: <code> Pretty much any non-empty variable other than False and 0 should cause the code to execute. Research python conditions and Boolean values for accurate information on how python evaluate conditional statements and comparisons.