Posted: 26th Aug 2011 2:43
I couldn't get the bitewise operators working:

EXP1: 5 || 10=15
EXP2: %0101 || %1010= %1111 which is 15.

now this is the code I wrote:

+ Code Snippet
a=5
b=10
c=a || b
do
    print(c)
    sync()
loop
end


or

+ Code Snippet
a=%0101 
b= %1010
c=a || b
do
    print(c)
    sync()
loop
end


both programs will return 1, not 15.
am I doing any mistake or bitewise operators not implemented in tier 1.
Posted: 26th Aug 2011 3:46
I'm unsure about the Tier 1 language, but usually bit-wise 'or' is denoted with a single pipe: |
c = a | b

Have you tried that?
Posted: 26th Aug 2011 15:59
or is always ||.
Posted: 26th Aug 2011 18:55
It seems a bug for me.

The documentation says the operator for Bitwise OR is "||".

I did the test and it also returns 1 for me. The && works fine, though.

Cheers
Posted: 26th Aug 2011 18:56
Have you worked it out?

All I was saying was that in Java, JavaScript, PHP, C, C++, Objective-C, etc...,
Boolean 'or' is double pipe ||
Bit-wise 'or' is a single pipe |
I assumed the Tier 1 language wouldn't be any different. But I'm using Tier 2 so I can't check.
Posted: 27th Aug 2011 5:49
I do apologise to my colleagues in the forum as this post is back on the top.

@LiamGoodacre

bitwise operators in AppGameKit are represented the same way as DBpro but be careful!!, what is used as bitwise operators in AppGameKit is used as boolean operators in c/c++:

bitwise operators in AGK:
|| for OR
&& for and
~~ for xor
.. for not
<< left shift
>> right shift
Posted: 27th Aug 2011 7:12
as well the XOR bitwise operator (~~) is not working properly. so a fault in OR bitwise operator |) and XOR bitwise operator (~~).
Posted: 1st Sep 2011 3:10
Have you tried the new update 1.0.3.6?
Posted: 2nd Sep 2011 15:27
working. thank you