Very hard to answer without any context, but this is what it actually does (it does what we call in Javascript a 'double bang' and an OR):
B4X:
Sub CheckPassword(v As Object) As ObjectReturnNot(Not(v)) Or"Password is required"EndSub
...
Log(CheckPassword("")) ' Password is requiredLog(CheckPassword(True)) 'trueLog(CheckPassword(False)) ' Password is requiredLog(CheckPassword("Password")) ' true
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.