Org.IsValid
Skip to content
mnscript
bool Org.IsValid() 

Description ​

Returns whether the org is valid

Returns ​

bool - True if the org is valid

Example ​

msc
using Org;
using Console;
using Player;
using System;

// Finds the org of the player using the computer and checks if it exists.

Player user = System.GetUser();
Org org = Org.GetOrg(user);

if(org.IsValid()){
    // The org is valid, which means it exists.

    Console.WriteLine("The org exists!");
}