Thread
:
LUA: null coalescing ??
View Single Post
07-11-14, 06:49 PM
#
1
ArithEU
A Kobold Labourer
Join Date: Mar 2012
Posts: 1
Lua: null coalescing ??
Hey there
I'm very inexperienced with Lua (I'm a C# developer) and I was wondering if there's a null coalescing operator I could use to handle any null/empty strings?
for example in C# I would do
Code:
string a = b ?? c;
which would give
a
the value of
c
if
b
was null.
Last edited by ArithEU : 07-11-14 at
07:00 PM
. Reason: un-capitalising "Lua"
ArithEU
View Public Profile
Send a private message to ArithEU
Visit ArithEU's homepage!
Find More Posts by ArithEU