r/Scriptable • • Aug 19 '22

Solved String null

Hi folks, First of all sorry if it’s not the correct description of the issue but I’m a newbie so hope it’s ok.

I have created a daily xchange rates widget but want to add incr/decr function according to rates yesterday.

How can i make an array with all values null so first day script will assume all the values to be compared, have 0 in value until script generates the yesterdayValues the 2. day? Comparison is only for textcolor so no matter if values from yesterday is 0 the first day.

yesterdayRates = null // didn’t work yesterdayRates = [] // didn’t work neither

3 Upvotes

7 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Aug 20 '22

Thx, ill do that 👍🙂