CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Dvar Struct Toggles
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="BullyWiiPlaza" data-source="post: 7968" data-attributes="member: 543"><p>1) How do you know the starting value? This is also to not repeat yourself when you also need to toggle it off when the game ends. You can't do that with a ternary since you have to mention the "off value" again</p><p>2) This is meant to be used for many dvar toggles. I just used one as an example so it will pay off with 5 or 10+ of them like usually the case in most big menus</p><p>3) I guess there is no need to comment on that. Space is not sparse so you can use a few more lines to improve the coding <img src="/styles/default/xenforo/smilies.emoji/people/sweat_smile.emoji.svg" class="smilie" loading="lazy" alt=":sweatsmile:" title="Sweat Smile :sweatsmile:" data-shortname=":sweatsmile:" /></p></blockquote><p></p>
[QUOTE="BullyWiiPlaza, post: 7968, member: 543"] 1) How do you know the starting value? This is also to not repeat yourself when you also need to toggle it off when the game ends. You can't do that with a ternary since you have to mention the "off value" again 2) This is meant to be used for many dvar toggles. I just used one as an example so it will pay off with 5 or 10+ of them like usually the case in most big menus 3) I guess there is no need to comment on that. Space is not sparse so you can use a few more lines to improve the coding :sweatsmile: [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Dvar Struct Toggles
CabConModding is now on facebook! Check the latest Updates, the Site Status and much more now!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top