Skip to content
Immanuel Bendahan edited this page Sep 30, 2017 · 4 revisions

Welcome to the More Functions wiki!

Amur Tiger 1

This version is called Amur Tiger

Current (explained) functions

isset(object);

The isset() function

What does it do?

isset() is used to check if a variable is set.

How to use? (example)

var x = 10;

// x is set
if (isset(x)) {
 alert('x is set!');
} else {
 alert('x is NOT set!');
}

// y is NOT set
if (isset(y)) {
 alert('y is set!');
} else {
 alert('y is NOT set!');
}

Explanation

isset(object); will give an output either

true

or

false

So if the object (here x and y) is set, isset() will give an output of true. When not set, it will give an output of false.


More Coming soon!

Clone this wiki locally