Normally both are wrong. No idea why > works. But this have nothing to do with B4A. This escaping is same syntax as in html. Use always the escaped version and you're on the right side.
Thank you for reply MaFu. Now I understad a bit more!
So, in short, the trick is:
Working comment
'Example1 IIf(3 > 4, "Correct", "Wrong") will Return "Wrong"
Sub IIf(QuestionTrue As Boolean, TruePart As Object, FalsePart As Object) As Object
If QuestionTrue Then Return TruePart
Return FalsePart
End Sub
Not working comment
'Example1 IIf(3 < 4, "Correct", "Wrong") will Return "Correct"
Sub IIf(QuestionTrue As Boolean, TruePart As Object, FalsePart As Object) As Object
If QuestionTrue Then Return TruePart
Return FalsePart
End Sub
The Trick working for both comment
'Example1 IIf(3 > 4, "Correct", "Wrong") will Return "Correct"
'Example2 IIf(3 < 4, "Correct", "Wrong") will Return 4
Sub IIf(QuestionTrue As Boolean, TruePart As Object, FalsePart As Object) As Object
If QuestionTrue Then Return TruePart
Return FalsePart
End Sub
But, once again, as I said in the post
#1, even get it working in the "Baloon",
upon the subroutine, still not user-friendly.
I think B4A, can do, easily, the translation. But this is just a wish
** NOTE ** For all those will read this thread, I remind them that we are talking about the
comment upon the subroutine that will be shown in the hint(baloon) at the program time.
The Code inside the subroutine still working, no matter whether the comment is working or not.