if else function
Posted: Sun Aug 14, 2022 6:23 pm
hi all, i'm new with java script need help with custom code if the balance is 0 status will be "PAID" else "Unpaid"
Code: Select all
nuSetValue('status', 'status: ' + (balance.value == 0 ? 'Paid' : 'Unpaid'));
Code: Select all
nuSetValue('status', 'status: ' + (balance.value == 0 ? 'Paid' : 'Unpaid'),'html');