#should i use the "if Data" format or the "or" format? (for datastores)
1 messages · Page 1 of 1 (latest)
Or format behaves like
If data.Joins is nil then 0
So same as before but without success check which would be nice for safety
1 messages · Page 1 of 1 (latest)
--data format
if success and data then
plr.Joins.Value = data.Joins
elseif data == nil then
plr.Joins.Value = 0
end
--or format
plr.Joins.Value = data.Joins or 0
Or format behaves like
If data.Joins is nil then 0
So same as before but without success check which would be nice for safety