IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

DSPs- Using ifvar inside a loop for string list

  • 1.  DSPs- Using ifvar inside a loop for string list

    Posted Thu May 09, 2002 07:01 PM

    In a B2B server DSP , can i use a %ifvar% within a %loop% to check if the value of an item in a string list equals something…?

    The problem i face with this is that the ifvar needs a variable name to check against and the value of a string list item is denoted by %value%. So for example this does not work:
    %invoke test:getList%
    %loop strlist%
    %ifvar %value% equals(‘yes’)%

    %endif%
    %endloop%
    %endinvoke%

    Any suggested workarounds?


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 2.  RE: DSPs- Using ifvar inside a loop for string list

    Posted Fri August 02, 2002 10:07 AM

    %invoke test:getList%
    %loop strlist%
    %value%
    %ifvar strlist equals(‘yes’)%

    %endif%


    %endloop%
    %endinvoke%


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods