RAD function: exists

A RAD function that checks for the existence of a field in a table.

Function

exists

Format

exists(<field name>, $file)

Factors

  • Returns true or false.
  • Replaces the index(<field.name>, descriptor($file))>0 expression.
  • The $file variable must be of data type 6. Any other data type returns false.
  • The first parameter can be either a character type variable or a quoted string.

Example

$L.return=exists(“schedule.id”, $L.schedule)

The value of $L.return is true if $L.schedule is a file variable containing a schedule record.