getBooleanOrSet

fun getBooleanOrSet(path: String, default: Boolean): Boolean

Gets the value of the given path as a Boolean or sets the default value if it doesn't exist

Return

The value of the given path as Boolean

Parameters

path

The path to get the value of

default

The default value to set if the path doesn't exist