What is the name of that function...
Tereza Snyder
tereza at califex.com
Sat Sep 18 21:12:54 EDT 2010
On Sep 18, 2010, at 5:23 PM, Tereza Snyder wrote:
>
> On Sep 18, 2010, at 4:49 PM, Mark Wieder wrote:
>
>> Tereza-
>>
>> Saturday, September 18, 2010, 2:42:34 PM, you wrote:
>>
>>> Somebody knows
>> what is it.
>>
>> I was (wrap) going to try (wrap) to remember it (wrap) as well, but
>> it's (wrap) not on the tip of my (wrap) tongue…
>>
>
> Hmmmph! it's an OPERATOR not a function! And it doesn't work with negative numbers*!
>
> *
> on tabkey
> if the shiftkey is down then get sCurrentvalue-1 wrap 5
> …
>
> t
>
Actually it DOES work with negative numbers, it doesn't work with 0, i.e. 0 wrap 4 is 0, and 0 is taken care of by:
if the shiftKey is down then get (it - 1 + tMax) wrap 3 else get (it + 1) wrap tMax
More information about the use-livecode
mailing list