trevordevore / levure

Application development framework for LiveCode
MIT License
32 stars 14 forks source link

Check existence of nested keys in app properties #119

Closed trevordevore closed 5 years ago

trevordevore commented 5 years ago

e.g. put levureAppHasProperty("preferences filename", "user", "default")

Fixes #118

macMikey commented 5 years ago

I'm not sure this is quite right. Shouldn't this only return true at the bottom of the tree, not on a parent branch? levureapphasproperty ("preferences filename") does not hold a value as it is a parent, so getting it will return an array, not a value.

trevordevore commented 5 years ago

Any key in the tree is a valid property. A property with an array for a value.