Wiki Markup |
---|
h3. Examples {tip}JavaScript is case sensitive{tip} Note: #var = #code \\ || Function || Description || | age(#birth); | Gives the current age where #birth is the data export name for the birth date variable | | ageAsOf(#birth, #diagnosis); | Gives the age at the date entered for variable #diagnosis | | st_calculateBmi(true, #hCm, #wKgs); | Calculates BMI with #hCm height in centimeters and #wKgs weight in kilograms. | | st_calculateBmi(false, #hInch, #wLbs); | Calculates BMI with #hInch height in inches and #wLbs weight in pounds. | | st_round(#var1, numberOfDecimalPlaces); | Returns the value of var1 rounded to the number of decimal places indicated. | | st_isBetween(#var1, lowerBound, upperBound); | is less than or equal to | | \#var1.enable(#var2 == 3); | is less than | | \#var3.disable(); | is not equal to | | \#var1.showRow(#var2 == 3); | and | | \#var3.hideRow(); | or | | \#var3.showVariableGroup(#var4 == 1); | a blank value | | if (#bgl < 70) #result.setValue(0); | is null | | \!isNull() | is not null | | if (#bgl < 70) #result.setValue(0); | plus | | if (#sex == 0) {\\ \#var5.style.background='blue';\\ \#var5.style.color='white';\\ } | minus | | \#var1.style.background = "green"; | times | | \#var1.style.color = "white"; | divided by | |
Page Comparison
General
Content
Integrations