#should i use the "if Data" format or the "or" format? (for datastores)

1 messages · Page 1 of 1 (latest)

signal crescent
#
--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
rustic grove