Problem with if equal? argument "trial"
[1/3] from: arolls::bigpond::net::au at: 19-Aug-2001 5:42
Try this in console:
>> write %test.r {rebol[] a: probe system/script/args print "OK" wait 4}
>> do/args %test.r 'hello
hello
OK
== none
[2/3] from: ronald:gruss:libertysurf at: 18-Aug-2001 23:05
Hi Laplace,
> Hello this program does not work ? Thanks
>
> rebol[]
> argument: system/script/args
> print argument
this prints to console : to see it, add
halt
at end of script
> [
> print "OK".<--- the dot gives a script error
> ]
>
that's a block and it's not evaluated
try this
rebol[]
print system/script/args
do [
print "OK"
]
halt
Rebol puts the arguments when called on command line :
save your script under .../view/test.r
in a dos window type
cd ..
cd rebol\view
rebol test.r arg1 25 another_test_argument
You'l get at rebol console :
arg1 25 another_test_argument
OK
>>
Cheers Ronald
[3/3] from: laplace:worldnet at: 18-Aug-2001 17:37
Hello this program does not work ? Thanks
rebol[]
argument: system/script/args
print argument
[
print "OK".
]