Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
if else function Topic is solved
-
- Posts: 6
- Joined: Sat Jan 02, 2021 4:03 am
- Location: Usa
if else function
hi all, i'm new with java script need help with custom code if the balance is 0 status will be "PAID" else "Unpaid"
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4565
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 529 times
- Contact:
Re: if else function
Hi,
Code: Select all
nuSetValue('status', 'status: ' + (balance.value == 0 ? 'Paid' : 'Unpaid'));
- replace status with the id of your status object
replace balance with the id of your balance object
Code: Select all
nuSetValue('status', 'status: ' + (balance.value == 0 ? 'Paid' : 'Unpaid'),'html');
-
- Posts: 6
- Joined: Sat Jan 02, 2021 4:03 am
- Location: Usa