You can use IF ELSE statements for your task.
Example:
if($w("#dropdown1").value === 'ABCD) {
let total = Number($w("#price").value) + 20;
//continue with desired logic
}
Couple this with the dropdown element’s onChange function
You can use IF ELSE statements for your task.
Example:
if($w("#dropdown1").value === 'ABCD) {
let total = Number($w("#price").value) + 20;
//continue with desired logic
}
Couple this with the dropdown element’s onChange function