Sample Header Ad - 728x90

How can i check if a number is higher or lower then another number?

-1 votes
1 answer
779 views
I have files that contain 2 numbers like the following: File 1 1 0 File 2 0 1 File 3 3 3 I want to compare the number on the first line to the number on the second line. If the number on the first line is higher echo : Higher If the number on the first line is lower echo : Lower If the number on both lines are the same echo : Same How can i acheive this?
Asked by jonny b (93 rep)
Apr 23, 2019, 09:54 PM
Last activity: Apr 23, 2019, 10:19 PM