Qonfire Posted January 16, 2012 Posted January 16, 2012 (action_tile "opt1" (if (= 0 (atoi (get_tile "selections11"))) (set_tile "error" "Select #1 Sprinkler from list") (nest1) )) Hello people I'm stuck here: Basicly, I want to see if statement true, than set the error, if not, run "nest1" (expression i build with defun) but no luck.Can somebody show how things work with action tile I think should put " " here and there, but when and how thank you Quote
fixo Posted January 16, 2012 Posted January 16, 2012 Expression must be of type string (action_tile "opt1" (strcat "(progn (if (= 0 (atoi (get_tile \"selections11\"))) (set_tile \"error\" \"Select #1 Sprinkler from list\") (nest1) ))"));check brackets Just on the quick glance Quote
Qonfire Posted January 17, 2012 Author Posted January 17, 2012 Good morning! I'm stack again, idea is to get dist when calc pressed, doesn't work,maybe because dialog is opened please tip me (action_tile "opt1" (strcat "( (setq Ldist ( getdist \"Get Distance\")))")) (start_dialog) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.