bertrand

Am’I loosing my mind or script bug.

Discussion created by bertrand on Mar 22, 2018
Latest reply on Mar 27, 2018 by beverly

Am’I loosing my mind.

 

When the following script is called with ”Ask” as parameter, $_void is set as "Parameter when call is other than Ask or Stat"

 

Call : Perform Script [”Script_1”; Parameter: ”Ask” ]

 

Script_1

 

# Get parameters

Set Variable [ $NbParametres; Value:ValueCount ( Get ( ScriptParameter) ) ]

 

# Parameter 1 : the raison for callin this script ( value : ”Ask” or ”Stat” or ”Init” )

If [ $NbParametres > 0 ]
Set Variable [ $$Suite; Value:TrimReturns_CFpub ( MiddleValues ( Get ( ScriptParameter ) ; 1 ; 1 ) ) ]

End If

 

If [ $$Suite = "Stat" or $$Suite = "Ask" ]
Set Variable [ $_void; Value:”Parameter when call is Ask or Stat" ]

Else
Set Variable [ $_void; Value:"Parameter when call is other than Ask or Stat" ]

End If

End Script

 

When this script is call with ”Ask” as parameter, $_void is set as "Parameter when call is other than Ask or Stat"

 

FMPA 15.0.4 and macOS 10.13.3

Outcomes