Filtering and Formatting Data Mod 5 Flashcards
What does the eval command allow you to do?
The eval command allows you to calculate and manipulate field values in your report and it supports a variety of functions
What happens if the destination field exists when using the eval command?
The values of the field are replaced by the results of eval command
Is the index data modified when using the eval command?
No, the data is not modified and no new data is written into the index
Are field values treated as case sensitive when using the eval command?
Yes, field values are treated in a case sensitive manner when using the eval command
The eval command allows you to?
- Calculate expressions
- Place the results in a field
- Use that field in searches or other expressions
What are the types that the eval commands effects?
Arithmetic/Operators
+, -, *, /, %
Concatenation/Operators
+, .
Boolean/Operators
AND OR NOT XOR
Comparison/Operators
, <=, >=, !=, =, ==, LIKE
What is another function the eval command can do to values?
It can convert values. For example, the eval command can convert bytes into megabytes
The eval command must do what in order to successfully convert values?
It must be set to a new or existing field
The eval command also has another function that will help readability?
The round (field/number, decimals) function sets the value of a field to the number of decimals you specify
What will the result be if decimals are unspecified when using the round function in the eval command?
The result is a whole number will be present
What command would you use if you wanted to remove a field in the search window?
Use the fields - command
Where can you perform mathematical functions when using the eval command?
You can use mathematical functions against fields with numeric field values
When using the eval command, what does the tostring function allow you to do?
tostring allows you to convert a numeric field value to a string
example: tostring(field, “option”)
What are some of the options of the tostring function when using the eval command?
- “commas”: applies commas. If the number includes decimals, it rounds to two decimal places
- “duration”: formats the number as “hh:mm:ss”
- “hex”: formats the number in hexadecimal
When using the eval command, give a scenario where you would use the range function?
Use the range function to return the difference between the max and min values of _time