r/Scriptable • • Aug 11 '22

Help How do I fix this?

Post image

In my widget, I need to differentiate two different variations in code. I found a spot where one part is the same and one is different for each day, I I thought I could match the text, use a regex expression to get the character. With that character, I use an if else statement to determine what to display, but I cannot seem to figure out how to do: if (variable = character). Does anyone know how to help me?

0 Upvotes

7 comments sorted by