Javascript/JQuery if statement
- by Samuurai
This is probably pretty simple, but I can't figure out how to do it:
I have this code:
$.post("/admin/contract", {
'mark_paid' : true,
'id' : id
},
In pseudo code, how can I do this:
$.post("/admin/contract", {
'mark_paid' : true,
'id' : id,
if(is_set(dont_email)) {print 'dont_email' : true}
},