[system.is-os]

system.is-os is a slot in the system namespace, in Hyperlambda, the language of Magic Cloud. Returns true if the current operating system matches the specified platform.

  • Value (os-name), required: Operating system platform name to compare against, typically WINDOWS, LINUX, OSX, or FREEBSD
  • Returns: Returns true if the current operating system matches the supplied platform name

JSON declaration

This is the complete declaration of system.is-os, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "system.is-os",
  "description": "Returns true if the current operating system matches the specified platform",
  "signature": {
    "input": {
      "kind": "os-name",
      "description": "Operating system platform name to compare against, typically WINDOWS, LINUX, OSX, or FREEBSD",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "boolean",
      "description": "Returns true if the current operating system matches the supplied platform name"
    }
  }
}

← system.execute all system.* slots system.os →