set fill with ?: (conditional)
in
Programming Questions
•
2 years ago
Is there a way to set a fill color with the conditional operator?
(gender < 1) ? fill(femaleColor) : fill(maleColor);
(gender is a int)
1