Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PlistElement.AsBoolean

public bool AsBoolean();

Returns

bool The value of the boolean element.

Description

Convenience method to convert to bool.

The method is equivalent to ((PlistElementBoolean) el).value. Throws exception if the element is not PlistElementBoolean.

Did you find this page useful? Please give it a rating: