Results 1 to 3 of 3
- 01-09-2013, 07:38 PM #1
Member
- Join Date
- Jan 2013
- Posts
- 3
- Rep Power
- 0
Make 1 Variable demand 2 things ? - (Example ; Variable=1 && 2 )
Hello !
I am making a calculator and I have to know how to make a Variable demand 2 things,
etc
if(MetodCheck=1 && 2){
then begin doing the code
}
Just to clarify, MetoCheck is requiring both 1 and 2 to be "active?" to continue the code.
Thanks <3
- 01-09-2013, 07:51 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Re: Make 1 Variable demand 2 things ? - (Example ; Variable=1 && 2 )
A variable can contain one single value only, so if an int variable has the value 1 (one) it isn't 2 (two) or whatever other value; you can change its value but then it lost its previous value ...
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-09-2013, 08:10 PM #3
Member
- Join Date
- Jan 2013
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
How to compare variable with multiple variable?
By mharckz009 in forum New To JavaReplies: 5Last Post: 09-11-2012, 04:33 PM -
Creating an instance variable in one class that connects to another instance variable
By SpicyElectricity in forum New To JavaReplies: 1Last Post: 04-21-2012, 06:03 PM -
Dynamic variable name based on other variable
By nadissen in forum EclipseReplies: 4Last Post: 05-06-2011, 06:22 PM -
How do I substitute any variable for a hardcoded variable
By Weazel Boy in forum New To JavaReplies: 11Last Post: 07-07-2010, 06:02 AM -
make a variable name from a string?
By Kinnikinnick in forum New To JavaReplies: 3Last Post: 11-13-2007, 03:54 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks