|
\#
\type
example, \1 123
is a number (type 1).
general view
object | syntax | alternate syntax |
numbers (123) | \1 123 | 123 |
strings | \4 .... | "string" |
lists | \6 nb ... | none |
array | \7 nb ... | none |
complexs | \8 ... | none |
\!
\! SWAP
\>
syntax\> SWAP DUP + SWAP \xis the same as
\! SWAP \! DUP \! + \! SWAPNote, if you use the Alternate Script System you just need to type
{ swap dup + swap }
and use list->script
to get your script. but in this case you have the version with \!
.
\>
you must use \x
\@ FOR ... \@ INDEX .. \@ NEXT |
\@ FOR wait for two numbers from stack (from to)\@ INDEX return to stack the index\@ NEXT end the loop |
list->script
will add all necessery \@
.
example :
in alternate script system | in script |
{ 1 5 for index ^2 next 5 ->list } |
1 5 \@ FOR \@ INDEX \! ^2 \@ NEXT 5 \! ->list |
\@ INDEX
always give inner index !1 5 \@ FOR \@ INDEX \! STO_A 10 20 \@ FOR \! RCL_A \@ INDEX \! R->C \@ NEXT \@ NEXT |
the red loop is the outer-loop (1 to 5) We store the outer index in A (STO_A) We run inner-loop (10 to 20). outer-index is RCL_A inner-index is \@ INDEX we can create a complex (for example) |
STO
and Exec
) not very fast because of file manipulation\#
at the beginig of the line.\#this script perform a md5 on the file "myfile" "myfile" \! FileRead \! md5