0

I have a money counter that i want to add and alert telling you wether a a coin can be made into a roll

what im trying to do is this right now i have a code set up to where each coin has an alert window instead of multiple windows i want to make it where when theres more than two it will show up in only one alert window ill make a short code of whats i want to have it do for better explaining i only want the text to display if it have met the condition in the if statement https://code.sololearn.com/WvmYSFS0mAOV/?ref=app

28th Apr 2018, 4:49 AM
Brennan Woodroof
Brennan Woodroof - avatar
8 odpowiedzi
28th Apr 2018, 5:07 AM
Jonas Schröter
Jonas Schröter - avatar
+ 1
I don’t really understand what you want to do but your missing some “ which is messing up your code......
28th Apr 2018, 5:00 AM
Ole113
Ole113 - avatar
+ 1
Ok well your making the if statements wrong you have to use { like so: If(......){ alert(....) }
28th Apr 2018, 5:03 AM
Ole113
Ole113 - avatar
+ 1
thx Jonas Schröter thats what i wanted to learn i had the code wrong and a missing brackets after looking over it i made it quick only for this discussion as an example
28th Apr 2018, 5:12 AM
Brennan Woodroof
Brennan Woodroof - avatar
0
Yeah please do that
28th Apr 2018, 4:49 AM
Jonas Schröter
Jonas Schröter - avatar
0
i know the code is incorrect but i just want it to check if it has met the condition of the if statement and then display all of the ones that have met the condition in one alert window instead of being separate i just made the code as an example of whats im trying to do its going to be put into my money counter ive made
28th Apr 2018, 5:01 AM
Brennan Woodroof
Brennan Woodroof - avatar
0
I know what you want to do
28th Apr 2018, 5:03 AM
Jonas Schröter
Jonas Schröter - avatar
0
Ole113 啊额 he wants to display all lines in one alert box.
28th Apr 2018, 5:08 AM
Jonas Schröter
Jonas Schröter - avatar