Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] dynamic variable names and ifs enigma



******    message to minivend-users from "Bill Randle" <billr@exgate.tek.com>     ******


As Joachim said in "Re: [mv] Can Anyone Get [if] to work in this case?"
back in April 21 in reply to another [if] problem:

	Or another trick to do any conditional code working is,

	1. Set anything to the scratch variable like
	[set name="dummyvar" interpolate=1] [any MV tags] [/set]

	2. make your conditional codes like
	[if scratch dummyvar == 1] Yes!/No!-Answer [/if]
	or ...

If you don't want to use a perl expression, this is often the
best way to deal with complex expressions like yours. I just
tried the following and it correctly reports that it exists:

	[seti dynamic][value name="dynamic_var-[value dynamic_flag]"][/seti]
	[if scratch dynamic]
		value exists
	[else]
		value does not exist
	[/else]
	[/if]

	-Bill


On Jul 28,  1:01pm, adam@opusvl.com wrote:
} Subject: [mv] dynamic variable names and ifs   enigma
} ******    message to minivend-users from adam@opusvl.com     ******
}
} example of what I am trying to do
}
} [value name="dynamic_flag" set="3"]
} [value name="dynamic_var-[value dynamic_flag]" set="some text"]
[snip]
} [if value name="dynamic_var-[value dynamic_flag]"]
}         value exists
}  [else]
}         value does not exist
}  [/else]
} [/if]
[snip]
} but this is where is fails
} it displays that the value does not exist :(
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: