"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator ! (Logical Not Operation)

Operator !

Logical NOT operation. e.g.

my $bool = true;
say !$bool; // Flip a bool
// PRINTS
// false

my $x = 10;
if (!$x) // false since $x is higher than 0
{
    say "true";
}
else
{
    say "false";
}
// PRINTS
// false

my $x = "cat";
if (!$x) // false since $x contains at least one char
{
    say "true";
}
else
{
    say "false";
}
// PRINTS
// false

my $x = array("cat");
if (!$x) // false since $x contains at least one element
{
    say "true";
}
else
{
    say "false";
}
// PRINTS
// false

To see a list of all the operators go here.


Contact
Cheryl (uberfox@hotmail.com)
Homepage
http://ubersoft.org