I looking for a if statement. If number 1 is greater than number 2 subtract number 1 from number 2
if not subtract number 2 from number 1
I tried putting in if txtValue1 > txtValue2 { if txtValue1 > txtValue2{ // txtValue1 – txtValue2}
else {// txtValue2 – txtValue1 }}
New contributor
Stephen Franklin is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.