IBM Lotus Symphony
|
Negira izraz tako, da obrne bitne vrednosti.
Result = Not Expression
Result (Rezultat): Katerakoli številska spremenljivka, ki vsebuje rezultat negacije.
Expression: Katerikoli izraz, ki ga želite negirati.
Če se negira logični izraz, se vrednost True spremeni v False, vrednost False pa se spremeni v True.
Pri negaciji bitov se obrne vsak posamezni bit.
Sub ExampleNot
Dim vA as Variant, vB as Variant, vC as Variant, vD as Variant
Dim vOut as Variant
vA = 10: vB = 8: vC = 6: vD = Null
vOut = Not vA REM Returns -11
vOut = Not(vC > vD) REM Returns -1
vOut = Not(vB > vA) REM Returns -1
vOut = Not(vA > vB) REM Returns 0
end Sub