split numbers
How do you solve this?
let's say you have the number 567
and you wnat to slice i up to 5 6 7 so you can send i to a
select object to test it.
Many thanks
/Fredrik
regexp allows you to do that.
many thanks
/Fredrik
You can also use [% 10], [% 100], and other modulo and division operators to separate out individual digits. In some circumstances this can be easier than regexp.
Yet another way would be to use atoi and then subtract 48 from all elements in the list using vexpr.
Thanks all. You are very kind!
Hi
I am trying something similar, but producing bangs to messages after selecting a number. However, it is only selecting the first digit and not the remaining two numbers.
Is it even possible to do this with a delay 500 between each bang?
@Joe: [zl queue]
-