fn: console.locked
[contents]

Contents

Syntax

The syntax for console.locked calls is:

f++:  
console.locked

n++:  
@console.locked

Description

The console.locked function returns whether the console is currently locked, it takes zero parameters.

f++ example

Example of console.locked being used with f++:

  1. if(!(console.locked))
  2. console.lock
  3. console("hello, world!")
  4. console.unlock

n++ example

Example of console.locked being used with n++:

  1. @if(!(console.locked))
  2. @console.lock
  3. @console("hello, world!")
  4. @console.unlock