I have an "if" statement having 2 conditions. If just one of its 2 conditions is not equal, then it should show a specific text like below :
if (food != apple || food != orange ) {
Text (text = "They are vegetables.")
}
Here is the correct answer : if (food != apple && food != orange ) { Text (text = "They are vegetables.")}