这是具型的PASCL语句结构,学过PASCL的应该都能看懂
/* Enter relations using the following symbols:
/* memb_v - relation driven resultant dimension in this specific direction
/* memb_i - relation driven increment in this specific direction
/* lead_v - leader value (dimension selected to determine direction)
/* idx1 - pattern instance index in the first direction
/* idx2 - pattern instance index in the second direction
/* DO NOT USE memb_v AND memb_i IN THE SAME RELATION
/*-------------------------------------------------------------------
a = (-1)^(IDX1) /*DEFINE A AS A VARIABLE VALUE, OFFSET CAN BE REPLACED BY A OR ANY OTHER WORD ,把-1的IDX1次方赋值给变量a*/
if a<1
memb_v = (lead_v)*(2)
else
memb_v = lead_v
endif
/*如果(条件)那么(执行语句)否则(执行语句)结束*/