Jump to content

Recommended Posts

Posted

  (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

Posted

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

Posted

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)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...