You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing multiple if I have no way to close one and continue in the parent branching. Suppose that I have some optional parameters in input that are contained in the optional_fields dictionary, like
dictionary1
dictionary2
that contains other optional data.
When I have to checks if some data is present in dictionary1 I have to do
Given I have a 'string dictionary' named 'optional_fields'# nested_optional_field_1
If I verify 'dictionary1' is found in 'optional_fields'When I pickup from path 'optional_fields.dictionary1'
If I verify 'nested_optional_field_1' is found in 'dictionary1'# do stuff here with your parameter
Endif
# nested_optional_field_2
If I verify 'dictionary1' is found in 'optional_fields'When I pickup from path 'optional_fields.dictionary1'
If I verify 'nested_optional_field_1' is found in 'dictionary1'# do stuff here with your parameter
Endif
# and so on for all nested parameters
For each parameter I have to redo all the checks while it would be nice if the Endif would close only the nearest if, such that I can continue to check for other parameters like
Given I have a 'string dictionary' named 'optional_fields'# nested_optional_field_1
If I verify 'dictionary1' is found in 'optional_fields'When I pickup from path 'optional_fields.dictionary1'
If I verify 'nested_optional_field_1' is found in 'dictionary1'# do stuff here with your parameter
Endif
If I verify 'nested_optional_field_1' is found in 'dictionary1'# do stuff here with your parameter
Endif
# other parameters
Endif # to close first if
In order to matain back compatibility the Endif can continue to kill all the branches while a new statement can be introduced to close only the closer if
The text was updated successfully, but these errors were encountered:
When doing multiple
if
I have no way to close one and continue in the parent branching. Suppose that I have some optional parameters in input that are contained in theoptional_fields
dictionary, likethat contains other optional data.
When I have to checks if some data is present in dictionary1 I have to do
For each parameter I have to redo all the checks while it would be nice if the Endif would close only the nearest if, such that I can continue to check for other parameters like
In order to matain back compatibility the
Endif
can continue to kill all the branches while a new statement can be introduced to close only the closer ifThe text was updated successfully, but these errors were encountered: