Posted by: Galactygon
« on: April 12, 2017, 01:50:54 PM »Thanks for the reply. I guess I could try inlining and reincluding stuff if I get desperate. I have settled with macros for now which work for the stuff I want to do.
DEFINE_ACTION_FUNCTION "PRINT_TEST"
STR_VAR print_list = ""
done_deal = "DEFAULT"
RET done_deal
BEGIN
PRINT "%print_list%"
ACTION_PHP_EACH "%print_list%" AS one => two BEGIN
PRINT "%one% => %two%"
END
ACTION_DEFINE_ASSOCIATIVE_ARRAY "%done_deal%" BEGIN
U => V
W => X
Y => Z
END
END
ACTION_DEFINE_ASSOCIATIVE_ARRAY "TEST" BEGIN
A => B
C => D
E => F
END
LAF "PRINT_TEST" STR_VAR print_list = "TEST" RET done_deal END
PRINT "%done_deal%"
ACTION_PHP_EACH "%done_deal%" AS three => four BEGIN
PRINT "%three% => %four%"
END