Skip to content

Commit 316d824

Browse files
committed
Made if-statement into an else-if statement
1 parent 43bdfd9 commit 316d824

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codeup_todo_list/todo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ function get_input($upper = FALSE) {
6767
$key = get_input();
6868
// Remove from array
6969
unset($items[--$key]);
70-
}
71-
// Adding sort input
72-
if ($input == 'S') {
70+
// Adding sort input
71+
} elseif ($input == 'S') {
72+
// Alphabetical or Reverse alphabet?
7373
echo '(A)-Z or (Z)-A?: ';
7474
// Getting input
7575
$sortOption = get_input(TRUE);

0 commit comments

Comments
 (0)