What do they call something like this ...
<?=(($data->link_place == "T") ? "Top bar":"Main menu bar")?>
... it's sort of a if /else statement. But what if there are three possiblities
T = Top bar
M = Main menu bar
N = No menu
Would I have to use a normal if / ifelse / else statment?
<?=(($data->link_place == "T") ? "Top bar":"Main menu bar")?>
... it's sort of a if /else statement. But what if there are three possiblities
T = Top bar
M = Main menu bar
N = No menu
Would I have to use a normal if / ifelse / else statment?
Comment