Sure:
print("blah: " .. (a and "blah" or "nahblah"))
Related Posts:
- HTML IF Statement
- when to use if vs elif in python
- Logitech/LGHUB Lua – Loop with break
- “If not” condition statement in python
- Check if something is (not) in a list in Python
- How do I use properly CASE..WHEN in MySQL
- Lua Program Delay
- Concatenation of strings in Lua
- Python conditional assignment operator
- Split a string using string.gmatch() in Lua
- Lua replacement for the % operator
- Lua string.format options
- Don’t understand this SyntaxError: illegal target for annotation
- How to remove a lua table entry by its key?
- What is a good game engine that uses Lua?
- “attempt to index a nil value”-error in Lua
- Creating a timer using Lua
- Assembly language je jump function
- How to add a “sleep” or “wait” to my Lua Script?
- What is the difference of pairs() vs. ipairs() in Lua?
- How to get number of entries in a Lua table?
- How to dump a table to console?
- Lua – if statement with two conditions on the same variable?
- Lua string to int
- Lua read beginning of a string
- Nested if else in Twig
- Why does Lua have no “continue” statement?
- SQL conditional SELECT
- Getting input from the user in Lua
- Does Lua have OR comparisons?
- ER-Diagram: Ternary Relationship – How to read properly?
- Lua – Number to string behaviour
- Lua String replace
- Conditional JOIN Statement SQL Server
- How to iterate through table in Lua?
- (Excel) Conditional Formatting based on Adjacent Cell Value
- Lua: Rounding numbers and then truncate
- How to math.floor to a decimal in Lua?
- Lua operators, why isn’t +=, -= and so on defined?
- How do I append to a table in Lua
- Lua Semicolon Conventions