Combine a JS to conditional : <p>JS newbie here.  I have a landing page with two options - once and regular (two buttons).  we have to include a script to the page, but can't have both firing and rather need it to be conditional.  </p>

<p>The scripts are like this:</p>

<pre><code>    &lt;!-- Regular Donation --&gt;
&lt;script type="text/javascript"&gt;
window.adalyserTracker("trackEvent", "lce3", {value: 0.00, a4:"Regular"}, true);
&lt;/script&gt;

&lt;!-- One-off Donation --&gt;
&lt;script type="text/javascript"&gt;
window.adalyserTracker("trackEvent", "lce3", {value: 0.00, a4:"Once"}, true);
&lt;/script&gt;
</code></pre>

<p>Any ninjas out there who can help combine those quickly to one (e.g. if id on the button = once, use 'Once', if Id on the button = regular, use 'Regular') </p>

<p>Thanks in advance :) </p>
