Russell Posted April 16, 2020 Posted April 16, 2020 Hello team!! I have a short question to do here. I don't know what is better sintax for check if Steamworks is Initialized before we execute the Achievements code... Is like this: if Steamworks:Initialize() then Steamworks:SetAchievement(self.Achievement) end Or like this: if Steamworks:Initialize()==true then Steamworks:SetAchievement(self.Achievement) end What is the best sintax to do this??? Thank you very much!!! Quote
Josh Posted April 16, 2020 Posted April 16, 2020 Either should be fine! 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without.
OneHitWonder Posted April 16, 2020 Posted April 16, 2020 They are both the same. As Steamworks:Initialize() returns a boolean value you don't need to then compare it against another. I would generally go for the first method. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.