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
8 odpowiedzi
+ 1
+ 1
I don’t really understand what you want to do but your missing some “ which is messing up your code......
+ 1
Ok well your making the if statements wrong you have to use { like so:
If(......){
alert(....)
}
+ 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
0
Yeah please do that
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
0
I know what you want to do
0
Ole113 啊额 he wants to display all lines in one alert box.