corwin42 Expert Licensed User Longtime User Apr 14, 2011 #1 This gives a syntax error: B4X: str = "This " & 2 + 2 & " is a test" but this B4X: str = "This " & (2 + 2) & " is a test" works fine. Bug or feature?
This gives a syntax error: B4X: str = "This " & 2 + 2 & " is a test" but this B4X: str = "This " & (2 + 2) & " is a test" works fine. Bug or feature?
agraham Expert Licensed User Longtime User Apr 14, 2011 #2 Expected behaviour when you consider operator precedence.
corwin42 Expert Licensed User Longtime User Apr 14, 2011 #3 agraham said: Expected behaviour when you consider operator precedence. Click to expand... Is there somewhere a list of all operators with its precedence? I haven't found one.
agraham said: Expected behaviour when you consider operator precedence. Click to expand... Is there somewhere a list of all operators with its precedence? I haven't found one.