Properties.getOrElse

Get the node at the specified path, or return to the default value

  1. T getOrElse(T alt)
  2. T getOrElse(string path, T alt)
    struct Properties
    T
    getOrElse
    (
    T
    )
    (
    string path
    ,
    T alt
    )
    if (
    IsValidType!T
    )

Parameters

path
Type: string

The path to the desired site

alt
Type: T

Default value

Examples

getOrElse("foo", 1);

Meta