Basic If Statment BATCH CODING
Posted: 28 Sep 2017 19:54
Hi! Just a newbie here. I need some help regarding with my project. This is like my 1 time in batch coding and not familiar yet with the codes. My teacher gave me a homework where I need to create a grade system using batch file.
**************************************
The out should be like tis. When you enter the grade it should display the ff:
91-100 = Excellent
81-90 = Very Satisfactory
71-80 = Satisfactory
61-70 = Very Good
51-60 = Good
0-50 = Failed
**************************************
Now I tried the ff code:
If %num% is GRT 90 echo Excellent
If %num% LSS 50 echo Failed
The only problem is I don't know what copde I should use for the rest. As per my teacher there's no command '<=' pr '>=' is batch coding. Any tips how to solve this? There's another activity but it's pretty much the same. I just want to know how to to thru this and I'm pretty ure I will be able to figure the other activity. Thanks in advance!
**************************************
The out should be like tis. When you enter the grade it should display the ff:
91-100 = Excellent
81-90 = Very Satisfactory
71-80 = Satisfactory
61-70 = Very Good
51-60 = Good
0-50 = Failed
**************************************
Now I tried the ff code:
If %num% is GRT 90 echo Excellent
If %num% LSS 50 echo Failed
The only problem is I don't know what copde I should use for the rest. As per my teacher there's no command '<=' pr '>=' is batch coding. Any tips how to solve this? There's another activity but it's pretty much the same. I just want to know how to to thru this and I'm pretty ure I will be able to figure the other activity. Thanks in advance!