...
Code Block | ||
---|---|---|
| ||
let price = model.volume * 0.0002;
if (user.email && user.email.endsWith("@3yourmind.com")) {
price = 0.9 * price;
}
price; // Last line contains the final price |
...
...
Code Block | ||
---|---|---|
| ||
let price = model.volume * 0.0002;
if (user.email && user.email.endsWith("@3yourmind.com")) {
price = 0.9 * price;
}
price; // Last line contains the final price |
...