ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage syntax / Operators
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The different operators are as follows:
Logical operatorsExamples: AND, OR, NOT
Arithmetic operatorsExamples: "+", "-", "*", "/", "++", "--", "+=", "-="
Bitwise operatorsExamples: "&", "|", "||", bitLeftShift, bitRightShift, [ and ] operators
Comparison operatorsExamples: "=", "~=", "<>", "<=", ">=", "<", ">"
Operators on character stringsExamples: "+", "[[", "]]"
Operators on address&
Operators for control and item indirection{ and }
Punctuation operatorsExamples: "(" and ")", "[" and "]", "," and "." and ":" and ";", "..", "..." and "//"
Exchange operators<=>
Assignment operators"=", "<-" and "<="
Minimum version required
  • Version 9
This page is also available for…
Comments
Another example
EDT_Senha..BrushColor = (EDT_Senha <> EDT_Senha_Confirma) OR (Length(EDT_Senha) < 6) ? LightRed ELSE White

EDT_Nome..BrushColor = EDT_Nome = "" ? LightRed ELSE White
adrianoboller
16 Oct. 2015
? as an in-line logical operator
I'd like to include ? in the list of logical or string operators.
Using the ? to do in line comparisons as in
<Result> = <Condition>? <Expression 1> ELSE <Expression 2>
Example :
Trace("The color is " + (sSelectedColor=""? "not selected." else sSelectedColor))

The trace will report either the color or "not selected" depending on the value of sSelectedColor
ccordes
05 Jun. 2014

Last update: 07/03/2023

Send a report | Local help