PL-100 · Question #150
Case Study 4 - VanArsdel, Ltd Background VanArsdel, Ltd. is a growing landscaping company. In addition to providing regular maintenance for the properties of its clients, the company also offers…
The correct answer is A. If the value is greater than 0 D. If the value is not equal to null. To ensure a numeric field has a valid, positive entry, one must check if the value is both greater than zero and not null.
Question
Options
- AIf the value is greater than 0
- BIf the length of the value is greater than 0
- CIf the value is not equal to 0
- DIf the value is not equal to null
How the community answered
(47 responses)- A60% (28)
- B28% (13)
- C13% (6)
Why each option
To ensure a numeric field has a valid, positive entry, one must check if the value is both greater than zero and not null.
Checking "If the value is greater than 0" ensures that the numeric input is positive, which is a common validation requirement for quantities, costs, or other numerical fields that cannot be zero or negative.
Checking "If the length of the value is greater than 0" applies to text strings to ensure they are not empty, not typically to numeric values for checking positivity or non-null status.
Checking "If the value is not equal to 0" allows negative numbers, which might not be desired for certain fields like quantity or cost, making it less strict than "greater than 0".
Checking "If the value is not equal to null" ensures that a value has actually been provided for the field, preventing processing or calculations based on missing data. Null often represents an absence of value, whereas zero is a specific value.
Concept tested: Data validation with numeric and null checks
Source: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-isblank-isempty
Topics
Community Discussion
No community discussion yet for this question.