(Quick Reference)

exists

Purpose

Checks whether an instance exists for the specified id and returns true if it does

Examples

if(Account.exists(1)) {
     // do something
}

Description

Parameters:

  • id - The id of the object