Closed PatrickMinett closed 7 years ago
var x, y
Needs to be terminated with the;
From Stefan Bund
On Jan 8, 2017, at 4:25 PM, PatrickMinett notifications@github.com wrote:
I created a simple function to get the users input and test it. For whatever reason I cant get it to output the results..... any ideas?
Code:
Page 1 First Battle of Bull Run First Battle of Bull Run
Histocal background of the battle here
recommend sites to vist
recommend videos
recommend Books
recommend Games
recommend Maps
Test your knowloge of First Bull run!
What year did the battle of first bull run take place?
Submit answer
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Still not outputting anything. Also noticed I used text instead of number which made no sense seeing as I was asking for a year not a string.
Turns out if <--- was if which is If, which is incorrect. I am still having trouble getting the logic to work correctly but at the very least its outputting now.
Edit: was able to fix it.... seems a need to review my basic java (x = 1861) was causing the logic to default to the first y output. After correctly the issue ie (x == 1861) all is working correctly.
Give me two in the parentheses, the comparison operator should read
X ==
From Stefan Bund
On Jan 8, 2017, at 9:23 PM, PatrickMinett notifications@github.com wrote:
Turns out if <--- was if which is If, which is incorrect. I am still having trouble getting the logic to work correctly but at the very least its outputting now.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
I created a simple function to get the users input and test it. For whatever reason I cant get it to output the results..... any ideas?
Code:
First Battle of Bull Run
Histocal background of the battle here
recommend sites to vist
recommend videos
recommend Books
recommend Games
recommend Maps
Test your knowloge of First Bull run!
What year did the battle of first bull run take place?