Codeblix / Lua development
LC17 · Script contract demo
Source LC17-S1
Synthetic application settings
Host application / optional settings

Keep an explicit value when a setting is present.

Four settings travel from an application table to its scripting boundary. Agree the fallback rule and preserve each expected type.

4setting cases
3explicit values
1absent key
Pendingreceiving decision

LC17 input fixture

Setting keyIncoming valueDefaultExpected result
An absent table key uses its default. A deliberate false, numeric 0 or empty string "" must retain its value and type in this contract.