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++:

if(!(console.locked))
	console.lock
console("hello, world!")
console.unlock

n++ example

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

@if(!(console.locked))
	@console.lock
@console("hello, world!")
@console.unlock