- 0
Sign in to follow this
Followers
0
using functions inside select() rather than predetermined string
Asked by
Zirius
-
Recently Browsing 0 members
No registered users viewing this page.

hello, I am currently using the snippet:
switch(select(gettime(6),(gettime(6)+1),(gettime(6)+2))){ case 1: .@month = gettime(6); break; case 2: .@month = (gettime(6)+1); break; case 3: .@month = (gettime(6)+2); break;}As you can see, I am using function that returns an integer inside a select() function, it works great, except that console keeps showing debug at console because ofc select requires string
is there a way I can convert those gettime() into a string so I can use it inside select() function without showing debug errors?
Thank you!
Share this post
Link to post
Share on other sites