Addition (+)Description Show
Syntax Comments
If one or both expressions are Null expressions, the result is Null. If both expressions are Empty, the result is an integer subtype. However, if only one expression is Empty, the other expression is returned unchanged as a result. Example READ {.ProjectsSampleSample.prj}:Oswego DEFINE Newvar NUMERIC ASSIGN Newvar = Age + 5 LIST Age Newvar ARITHMETICDescription Syntax
Comments
Arithmetic operators are shown in descending order of precedence. Parentheses can be used to control the order in which operators are evaluated. The default order, however, frequently achieves the correct result. While it is possible to do date math with dates considered as a number of days (e.g., IncubationDays = SymptomDateTime – ExposureDateTime), the behavior of the database services underlying Epi Info makes it more efficient to use time interval functions (e.g., IncubationDays = MINUTES(ExposureDateTime, Symptom DateTime)/[24*60]). For doing date math, the following rules apply: Date + Date produces Date Example READ {.ProjectsSampleSample.prj}:Surveillance DEFINE var1 NUMERIC ASSIGN var1=1250 MOD 100 DEFINE var2 NUMERIC ASSIGN var2=1+1 DEFINE var3 NUMERIC ASSIGN var3=2-1 DEFINE var4 NUMERIC ASSIGN var4=1*1 DEFINE var5 NUMERIC ASSIGN var5=8/4 DEFINE var6 NUMERIC ASSIGN var6=5^2 LIST var1 var2 var3 var4 var5 var6 ComparisonsDescription
Syntax Comments Example READ {.ProjectsSampleSample.prj}:Surveillance SELECT Age>20 LIST Age Disease READ {.ProjectsSampleSample.prj}:Surveillance SELECT Age<45 LIST Age Disease READ {.ProjectsSampleSample.prj}:Surveillance SELECT Age>=38 LIST Age Disease READ {.ProjectsSampleSample.prj}:Surveillance SELECT Age<>77 LIST Age Disease Which operator is used when both the statements are true?&& is the logical and operator. It returns TRUE if both of the arguments evaluate to TRUE.
What is the difference between an if statement an IF ELSE statement and an IF ELSE IF statement quizlet?. In an if/else if statement, the conditions are tested until one is found to be true. The conditionally executed statement(s) are executed and the program exits the if/else if statement. In a series of if statements, all of the if statements execute and test their conditions because they are not connected.
Which operator result in true if both the operands are true?The && (logical AND) operator indicates whether both operands are true. If both operands have nonzero values, the result has the value 1 .
Can an if statement test expressions other than relational expressions?Can an if statement test expressions other than relational expressions? Yes - The if statement tests the expressions that returns the numeric value or Boolean value; that is True (or 1) or False (or 0).
|