News blog

What is Servoy?

Getting Started

Comparison Servoy/VFP




Code Reference


VFP2Servoy Toolkit



Contact / feedback















NVL() - globals.NVL()

Returns a non-null value from two expressions.


VFP code example

eVar1 = .NULL.
eVar2 = 16
? NVL(eVar1, eVar2)       && Outputs 16


Servoy code examplee

var eVar1 = null;
var eVar2 = 16;
application.output(globals.NVL(eVar1, eVar2))  // Outputs 16

Note: NVL() is a function of the VFP2Servoy Toolkit



When you look at the code of the NVL() function in the VFP2Servoy Toolkit you see that there is no easy way to do this in Servoy (or we haven't found it yet) so here using the function instead of the Servoy syntax saves time. 



External resources:


vfp plugin


ServoyWorld 2012 pics


Official Servoy website


Ken Levy on Servoy


Servoy info


Servoy Forum


Servoy Documentation © 2010-2012 • All rights reserved • Contact: