# ResCheck (Kernel)

`ResCheck`(resourceType moduleNumber noun verb condition sequence)

`ResCheck`(resourceType resourceNumber)

  Important

  SCI1.1 only.

  Checks if a resource is present.

  Parameters: | resourceType (number) – The type of the resource (rsVIEW, rsPIC, rsAUDIO36, etc...) resourceNumber (number) – The resource number. moduleNumber (number) – The module number (room number). noun (number) – The message noun. verb (number) – The message verb. condition (number) – The message condition. sequence (number) – The message sequence number.
  Returns: | TRUE if the resource is present, otherwise FALSE.

  Example:

      // Do we have an audio resource for this message?
      (if (ResCheck rsAUDIO36 moduleNumber noun verb condition sequence)
              (DoAudio audPLAY moduleNumber noun verb condition sequence)
      )