Syntax

Platform.Function.Empty(value)
1 argument

Parameters

Name Type Required Description
value string Yes String to check

Examples

Platform.Function.Empty(null);     // true
Platform.Function.Empty("");       // true
Platform.Function.Empty("   ");    // true
Platform.Function.Empty("hello");  // false
Platform.Function.Empty("0");      // false

var name = Platform.Request.GetFormData("name");
if (Platform.Function.Empty(name)) {
    Write("Name is required.");
}