script running problem

I have a problem when running a script from terminal and via scheduler or “Run Script” button.

:local rchbl
:if ([/ping 8.8.8.8 count=2] < 0 || [/ping 8.8.4.4 count=2] < 0 ) do={:set rchbl 1} else={:set rchbl 0}
:log info $rchbl
:put $rchbl

When i use terminal
/system/script run script1
the script returns 1
but…
if I use scheduler or “Run script” button
the script returns 0

What am I doing wrong??

You do not specify RouterOS version.

On v6
< 0 ???
You give less than 0 successfully results?

And i never get 1 on terminal