or in if why not owrk

18 views
Skip to first unread message

stefano cerbioni

unread,
Jul 29, 2022, 6:40:37 AM7/29/22
to The Ring Programming Language
hi i try to use or  in if  but it not  work for   anyone can explain me  where  is mistake ?
i look in manual but  find  only  example  and + or

jsonstring='
[[1658534400000,"0.06768000","0.06954000","0.06749300","0.06898100","79520.79020000",1658620799999,"5451.18811838",219652,"41536.75430000","2847.68501744","0"]]
'


if substr(jsonstring,"{")
MsgInfo ("Info","exist a curly bracket")
exit
ok

var=""
qalist=["start"]

for x=1 to len(jsonstring)
if ((jsonstring[x] != "[" )or (jsonstring[x] != "]") or (jsonstring[x] != "]]") or (jsonstring[x] != "[["))
if jsonstring[x] != '"'
if jsonstring[x]= ","
add(qalist,var)
ok
var +=jsonstring[x]
ok
ok
next

?len(qalist)
?qalist[2]

stefano cerbioni

unread,
Jul 29, 2022, 4:49:20 PM7/29/22
to The Ring Programming Language
i find solution yuppie ,i must use Char(91) :) thanks at all for support
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "The Ring Programming Language" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ring-lang/bo8gacA3UpA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ring-lang+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ring-lang/728ec954-90c3-46b0-a0a6-bea60b755a9cn%40googlegroups.com.
>

Bert Mariani

unread,
Aug 1, 2022, 6:55:09 PM8/1/22
to The Ring Programming Language
Hello Stefano

You have the ugliest posting that are next to impossible to follow.
Pease post your ENTIRE CODE as an attachment so we can read it.
Proper spacing and comments in the code would help.

Reply all
Reply to author
Forward
0 new messages