hy the problem in that aproach is that condition definition is not direct, but indirect
for example, "if true" and "if not false" are similar, but may be tricky to implement
i will write the code for an okuma machine, then try to adapt it
NHERE
// code, do something
V3=0
IF [ V1 NE 65 ] NJUMP1
V3=V3+1 ( increment v3 only if v1=65 )
NJUMP1
IF [ V2 NE 65 ] NJUMP2
V3=V3+1 ( increment v3 only if v2=65 )
NJUMP2
IF [ V3 NE 2 ] NHERE
it is a bit long, but uses simply if syntaxes, so should be easy to adapt;
next aproach will be a bit dense, since it will join those conditions, thus less code lines
can't provide code for "while", is not available on the controlers around here
NHERE
// code, do something
IF [ [ [ V1 EQ 65 ] AND [ V2 EQ 65 ] ] EQ 0 ] NHERE
kindly