I’m trying to build a question that the right answer can also be with a spelling mistake. I’m thinking of building it with “if” and “or” andthe rest is else.
How do I enter the '“or” options:
// For full API documentation, including code examples, visit Velo API Reference - Wix.com
import wixWindow from ‘wix-window’;
$w.onReady( function () {
//TODO: write your page related code here…
});
export function ititle_keyPress(event) {
//Add your code for this event here:
}
export function button1_click(event) {
//Add your code for this event here:
var answer = $w(‘#input1’).value;
if (answer === “Winter”){
or if
wixWindow.openLightbox(“right1”);
}
else {
wixWindow.openLightbox(“worng1”);
}
}