Question
Displaying text based on variable
I have a variable defined as brushSize. Depending on the value of brushSize, I want to display text in a dynamic text field that relates to its value.
For brushSize values of 3, 13, 23, 33, and 43 I'd like to display 1, 2, 3, 4, and 5 respectively. I'm not really sure where to begin here, but I have tried and failed with something like this:
if( brushSize == 3) {
brushSizeDisplay("1")
}
Any suggestions?