tagging_objects_with_local_and_using_prm_there_in_for_constructs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tagging_objects_with_local_and_using_prm_there_in_for_constructs [2017/04/27 18:04] – alancoelho | tagging_objects_with_local_and_using_prm_there_in_for_constructs [2022/11/03 15:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | --- // | ||
+ | Tagging objects with local and using Prm_There in for {} constructs | ||
+ | Prm_There can be used instead of: | ||
+ | for strs 1 to 1{} | ||
+ | for strs 2 to 2{} | ||
+ | for strs 3 to 3{} | ||
+ | For example: | ||
+ | xdd... | ||
+ | str... | ||
+ | local !CeO2 0 | ||
+ | str... | ||
+ | local !ZrO2 0 | ||
+ | str... | ||
+ | local !TiO2 0 | ||
+ | |||
+ | for strs { | ||
+ | if Prm_There(CeO2) { | ||
+ | ' CeO2 stuff here | ||
+ | } else if Prm_There(ZrO2) { | ||
+ | ' ZrO2 stuff here | ||
+ | } else if Prm_There(TiO2) { | ||
+ | ' TiO2 stuff here | ||
+ | } | ||
+ | } |