Cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to Define Exit Strategy at converter.

Valued Contributor
Valued Contributor

Hello, I am trying to define the exit strategy of a converter using a method. I want the converter to send MU's out side 1 if a parallelproc has less than 2 MUs on it, and otherwise send the MUs down the default path of 0.

 

My current code is this:

 

var AB1Cap : integer := AB1. NumMU
If (AB1Cap < 2)
?.ExitForNextEnteringMU := 1
else
?.ExitForNextEnteringMU := 0
end

 

*Note* I added the variable trying to resolve the issue I am having, don't know if I actually need it or not.

 

I have attached a screen shot of the error as well.

1 REPLY

Re: Trying to Define Exit Strategy at converter.

Valued Contributor
Valued Contributor

Nevermind. I was missing an openning line of code:

 

param ExitForNextEnteringMU: integer

 

I needed this at the beginning of the method to set the parameter as an integer so taht it would recognize integers.