function(){ // Evaluate the sample ID into a specific bucket selection var sampleId = {{sampleId}}; var limit = 100; var split = 70; // i.e. 30% are sampled as "true" return (Number(sampleId) % limit > split) ? 'true' : 'false'; }