reduce_condition()
method is available on various conditional constructs:
When you reduce a condition to True
or False
, Codegen automatically:
.reduce_condition
allows you to deterministically reduce this code to the following:
else
branch and keep the print
statement, like so:
useFeatureFlag
hook to a constant value like so, with FunctionCall.reduce_condition: