CF.getJoin("a100", function(join, value, tokens) {
// regardless of the join type, the value is always a string
// if we want a number, we need to use parseInt() or parseFloat()
var num = parseFloat(value);
if (num > 10.0) {
CF.log("a100 is above 10");
} else {
CF.log("a100 is below 10");
}
});
// Get three joins at once
CF.getJoins(["s1", "s2", "a3"], function(joins) {
// set s3 to be s1+s2 strings
CF.setJoin("s3", joins["s1"].value + joins["s2"].value);
// Check whether a3 exists in this GUI
if (joins["a3"].value == null) {
CF.log("Join a3 doesn't exist in this GUI");
}
});
--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
// Get three joins at once
CF.getJoins(["s1", "s2", "a3"], function(joins) {
// set s3 to be s1+s2 strings
CF.setJoin("s3", joins["s1"].value + joins["s2"].value);
// Check whether a3 exists in this GUI
if (joins["a3"].value == null) {
CF.log("Join a3 doesn't exist in this GUI");
}
});
--
You received this message because you are subscribed to a topic in the Google Groups "CommandFusion Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commandfusion/viZB-DTG9VI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to commandfusio...@googlegroups.com.