Hi,

For which PIC did you compile this? 12, 16, 18?

Did you use any compiler optimizations?

Thanks.

Kind regards,

Rob

________________________________
Van: '[email protected]' via jallib <[email protected]>
Verzonden: woensdag 16 augustus 2023 22:18
Aan: jallib <[email protected]>
Onderwerp: [jallib] IF statement fails

Hello everyone,

I found this code is not working (using jal jalv25r7, but also older versions). 
Can anyone pls verify:

var byte i
function test() return byte is
return 0
end function
i=test()
if i>0 & i<13 then
  -- goes here but is wrong
else
 ..
end if

but this code works:
var byte i
function test() return byte is
return 0
end function
i=test()
if i<13 & i>0 then
  ..
else
   -- goes here and OK
end if

if you remove the function, it works, too:
var byte i
i=0
if i>0 & i<13 then
  ..
else
   -- goes here and OK
end if


--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/2b197dbf-4628-4acd-b13c-11e3b6ba2228n%40googlegroups.com<https://groups.google.com/d/msgid/jallib/2b197dbf-4628-4acd-b13c-11e3b6ba2228n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/GVXP195MB16374EDB654DAD8B037B6A39E61AA%40GVXP195MB1637.EURP195.PROD.OUTLOOK.COM.

Reply via email to