Raised This Month: $ Target: $400
 0% 

[HELP] Getting num from const depending on condition - easy way


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-15-2014 , 17:04   Re: [HELP] Getting num from const depending on condition - easy way
Reply With Quote #1

Quote:
Originally Posted by Flick3rR View Post
Yes, but the loop returns all of the numbers inside the const... And in that case, it always returns the last number (because I can use only one number - in other case all of them are returned and used).
Not if you program it correctly. Simply use a break or use a subfunction and return the value.
__________________

Last edited by fysiks; 06-15-2014 at 17:05.
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode