tixGetBoolean(n)

πŸ“¦ version 8.4.3, in opensuse-leap 16.0

πŸ’– NAME πŸ’–

okay bestie, welcome to tixGetBoolean(n) from the Tix Built-In Commands manual ✨ This one is literally about getting the boolean value of a string. That’s the whole gig πŸ’…

✨ SYNOPSIS ✨

tixGetBoolean ?-nocomplain? string

🌸 DESCRIPTION 🌸

so here’s the tea β˜•: tixGetBoolean returns "0" when the string is a valid TCL string for the boolean value FALSE. It returns "1" when the string is a valid TCL string for the boolean value TRUE. no cap, that’s the main character behavior πŸ‘‘

  • -nocomplain β€” when the string is not a valid TCL boolean value and you’ve passed this option, tixGetBoolean will return "0" instead of throwing a fit 😌

without -nocomplain, if the string is not a valid TCL boolean value, it will generate an error. periodt. so if you’re feeling brave, leave it off; if you want the chill β€œjust give me a "0"” vibe, add it 🫢

πŸŽ€ KEYWORDS πŸŽ€

Tix(n) πŸ¦‹


xoxo, this page comes from Tix, version 4.0 β€” and the footer didn’t give me a date, so I’m not gonna invent one πŸ’…βœ¨

πŸ“¦ where this page comes from