Index

(misc)

o2zero

boolean o2zero(string $view_name, string $field_name)

Returns boolean value TRUE/FALSE if field value is equal/different from its type default value.
This function is the right way to check if a field or variable has a value.

When the view is a db-view it must be defined in the program where o2zero() is used and the field must be a field defined in that view.

To check a program-variable value pass JX_VIRT_VIEW as view name.
To check an application (session) variable pass "_o2SESSION" as view name.


Parameters:
  1. $view_name
  2. Name of the db-view or JX_VIRT_VIEW or "_o2SESSION"
  3. $field_name
  4. Name of the field or variable
Related functions:

o2val

o2pre

o2par

o2format