Closed michaelrsweet closed 2 years ago
We need slightly different syntax:
ATTR-IF-DEFINED VARIABLE_NAME syntax name value
ATTR-IF-NOT-DEFINED VARIABLE_NAME syntax name value
[master d7f7d2aa0] Add ATTR-IF-DEFINED and ATTR-IF-NOT-DEFINED directive support (Issue #3)
From @wifiprintguy, ippsample issue 254:
It would be very useful if the IF-DEFINED and IF-NOT-DEFINED predicates could be used in EXPECT and MEMBER directives so that attributes could be conditionally included in a request. For instance:
These two lines:
are currently illegal. To achieve this you have to write 2+ tests that are nearly identical, which is not an optimal solution.