"Sputnik" help  
Sputnik Help
Language Reference - Operators - Operator ~~ (Invert)

Operator ~~

Invert. e.g.

say ~~100;
say ~~(Int32)100;
say ~~"Cat";
printr ~~bin("hello");
printr ~~array("cat", "dog", "fox");

// PRINTS
// 7205759403792793600
// 1677721600
// taC
// Binary
// (
//     [0] => 0x6F [111] (o)
//     [1] => 0x6C [108] (l)
//     [2] => 0x6C [108] (l)
//     [3] => 0x65 [101] (e)
//     [4] => 0x68 [104] (h)
// )
// Array
// (
//     [0] => fox
//     [1] => dog
//     [2] => cat
// )

Flip a bool:

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

Can be used to flip an if statement:

// Set a string to parse
my $str = "Cat"; 
if(~~($str == "Dog"))
{
    say "String is NOT a dog";
}
else
{
    say "String is dog";
}
// PRINTS
// String is NOT a dog

To see a list of all the operators go here.


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