Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
# correct
if not persistent.chloe_imagen_01:
# incorrect
if persistent.chloe_imagen_01 == False:
# correct
if something_happened:
# incorrect
if something_happened == True:
Technically there are differences between conversion to bool, checking for equality with boolean literal and checking for identity with boolean literal, but I only ever needed implicit bool conversion and rarely simultaneous checking variable type and value by testing it with is True.
Generally you want to go with implicit conversion without checking either equality or identity.