I have a little trouble with a shorthanded if statement I can't figure out
($product == "vindo") ? $this->getNextVindoInList($id) : $this->getNextGandrupInList($id),
This works fine but I want to have another check in that statement. Like this:
if($product == "vindo") {
if($number != 14) {
$this->getNextVindoInList($id)
}
} else {
if($number != 22) {
$this->getNextGandrupInList($id)
}
}