Net.WriteBool
Skip to content
mnscript
bool Net.WriteBool(bool) 

Description ​

Writes a bool to the current Network Transfer Message (NTM)

Arguments ​

bool - The bool to write to the message

Returns ​

bool - True if the data was written

Example ​

msc
using Net;
using System;

// Starts a network message with the protocol 6000, writes the bool true, and sends it to an IP address.

number myProtocol = 6000;

Net.Start(myProtocol);
Net.WriteBool(true);
Net.SendToAddress("192.168.1.254");