How to reference number of choices in a parameter?


1 comment

  • Avatar

    It is not possible to access <choiceParameter> values. However, if you are using stdout from an application, you can check the number of entries it will generate and then set parameter(myParam).show accordingly.

    You can use the XML from Regular expression - count lines in stdout question to get the number of lines or use a regular expression to check if it contains at least the specified number of newlines.

    For example:


    The above will check that the text contains at least 10 newline characters.

Please sign in to leave a comment.