OpenBullet2 icon indicating copy to clipboard operation
OpenBullet2 copied to clipboard

Perform Function Once at all list

Open sufiyanashraf opened this issue 2 years ago • 1 comments

My config is Parsing a unix time list and and it's quantity is not fixed sometime it maybe 1 or sometime it maybe 4. I want to use full list in function block and convert unix time of all into date at once. Any way?

sufiyanashraf avatar Oct 20 '22 22:10 sufiyanashraf

senang je

BLOCK:ConstantList value = ["1666319495", "1666319496", "1666319497", "1666319498"] => VAR @times ENDBLOCK FOREACH time IN times BLOCK:UnixTimeToDate unixTime = @time => VAR @unixTimeToDateOutput ENDBLOCK END

walpak1 avatar Oct 21 '22 02:10 walpak1

Please read the docs https://discourse.openbullet.dev/t/iterating-on-lists/51

openbullet avatar Dec 03 '22 13:12 openbullet