JInput::def

Define a value. The value will only be set if there's no value for the name or if it is null.