Statistics: Posted by HarryBunnik — Thursday 13 April, 2023 - 17:39
Statistics: Posted by Simulerings Mads — Thursday 13 April, 2023 - 10:44
Statistics: Posted by Gabe-Hein Dijkstra — Tuesday 11 April, 2023 - 09:55
Statistics: Posted by Simulerings Mads — Monday 10 April, 2023 - 11:16
Statistics: Posted by Elien Schurmans — Thursday 23 March, 2023 - 11:05
Statistics: Posted by Deena — Thursday 12 January, 2023 - 12:13
Code:
HumanResourceTeam_CallResources(refHRTeam1, c, i, 1)
Statistics: Posted by Maxim1 — Wednesday 04 January, 2023 - 08:46
Statistics: Posted by Deena — Tuesday 03 January, 2023 - 16:29
Code:
Do( CloseInput(AtomByName([Side2],Model)), CloseInput(c) )
Code:
OpenInput(AtomByName([Side2],Model))
Code:
CloseInput(c)
Code:
OpenInput(AtomByName([Side1], Model))
Code:
HumanResourceTeam_CallResources(refHRTeam1, c, i,1)
Code:
OpenInput(c)
Statistics: Posted by Maxim1 — Thursday 22 December, 2022 - 16:59
Statistics: Posted by Gabe-Hein Dijkstra — Wednesday 07 December, 2022 - 15:31
Hi Max,
Welcome back to the forum!
The problem lies in the consecutive if-functions in your SendTo. The results from the previous if-statements are overwritten later on.
From the help:
"Syntax: If(e1, e2 {, e3})
Parameter 1 (e1) is the test statement. If this test statement returns 1 (True) parameter 2 (e2) is executed. If not optional parameter 3 (e3) is executed."
When the optional parameter 3 is not defined, it is seen as zero. Hence, the codereturns 1 whenever the icon number of the atom refToAtom is equal to 41. Otherwise, this code returns zero.Code:
If(Icon(refToAtom) = 41,1)
Furthermore, please look in the help to check what the atom reference "i" means. There is no involved atom on a SendTo, and hence you cannot use "i" there.
Hopefully these tips help you in the right direction!
Kind regards,
Gabe-Hein
Statistics: Posted by exoplanet — Wednesday 07 December, 2022 - 10:45
Code:
If(Icon(refToAtom) = 41,1)
Statistics: Posted by exoplanet — Tuesday 06 December, 2022 - 21:55
Code:
If(Icon(refToAtom) = 41,1)
Statistics: Posted by Gabe-Hein Dijkstra — Tuesday 06 December, 2022 - 10:32
Statistics: Posted by exoplanet — Monday 05 December, 2022 - 17:46
Statistics: Posted by Gabe-Hein Dijkstra — Thursday 16 June, 2022 - 13:23