Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi community stalwar1,
I'm trying to do sthing like this :
if( $(vNbr) >4,
Let vRequestBody = sthing1 ;
LIB CONNECT TO 'source';
do bla bla
" WITH CONNECTION(
BODY "$(vRequestBody)"
);
,
Let vRequestBody = sthing2 ;
LIB CONNECT TO 'source';
do bla bla
" WITH CONNECTION(
BODY "$(vRequestBody)"
);
)
but when I do this, It seems to be impossible (syntax error) :
see:
the question is, how can I do this otherwise?
if $(vNbr) >4 then
Let vRequestBody = sthing1 ;
LIB CONNECT TO 'source';
do bla bla
" WITH CONNECTION(
BODY "$(vRequestBody)";
Else
Let vRequestBody = sthing2 ;
LIB CONNECT TO 'source';
do bla bla
" WITH CONNECTION(
BODY "$(vRequestBody)";
EndIf
if $(vNbr) >4 then
Let vRequestBody = sthing1 ;
LIB CONNECT TO 'source';
do bla bla
" WITH CONNECTION(
BODY "$(vRequestBody)";
Else
Let vRequestBody = sthing2 ;
LIB CONNECT TO 'source';
do bla bla
" WITH CONNECTION(
BODY "$(vRequestBody)";
EndIf
Shame on me !