calling LISP commands within the setq funtion in R14

Is there a way to call a LISP command within the the setq or set functions such that (setq x 1 y 2 z 3) (setq pt1 ((+ x y) z)
will evaluate the exressions and return "3 3" instead of returning "(+ x y) z" as the value of the string?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
John McCullough wrote:

I'm not exactly sure what you're trying accomplish, when say "return '3 3'". In your example, you have a function (albeit with bad syntax) within the setq.
(setq pt1 (+ x y z)) would return the sum of x, y and z.
If you're trying to create a coordinate point from the values, you need to make them a list, like this:
(setq pt1 (list x y z))
That could be passed to any function/command requiring a point.
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload
Thanks for the input. It worked like a charm.

functions
y)
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.