Imagine the following ternary condition:
foreground = self.foreground if self.foreground else c4d.COLOR_TRANS
In this case, I need to call self.foreground
twice just to check if it is True
or not.
Is there a way where I only need to call it once ?
An equivalent expression is
foreground = self.foreground or c4d.COLOR_TRANS