Hello!
In the IF statement below, i want to add also flag= "Red", when the condition is True:
with FORMAT_CAPTION(color, caption) = (
""":panel[$Caption]{backgroundColor=$color color=white}"""
):
with redChildren = COUNT#children{IF(flag = "Red", key)}:
IF status = "done":
FORMAT_CAPTION("#36c", ":sunny: **Completed**")
ELSE IF (level = 1 or level = 2) and redChildren > 0:
FORMAT_CAPTION("#d33", ":cloud_with_lightning_and_rain: **At Risk **")
Can i write:
FORMAT_CAPTION("#d33", ":cloud_with_lightning_and_rain: **At Risk **", flag="Red")
OR
FORMAT_CAPTION("#d33", ":cloud_with_lightning_and_rain: **At Risk **") and flag= "Red"