svorgodne Posted February 29, 2016 Share Posted February 29, 2016 (edited) I need to find out what kind of values some symbols are having. There fore I know I can do the opposite. I need to verify if the symbol is something that I need to process. Example (setq example "Test") (type Test) STR But what I would need to verify is something like this (if (= Test STR) ;this test is not working and this is the main question, hhow to verify this ("do this") ) Of course this is not working and that is the reason I am asking. I need for different kind of symbols like I wrote before. Thanks in advance Sergio Edited February 29, 2016 by svorgodne make it clearer Quote Link to comment Share on other sites More sharing options...
svorgodne Posted February 29, 2016 Author Share Posted February 29, 2016 I figured it out myself already. The answer is (= Test 'STR) Thanks anyhow Quote Link to comment Share on other sites More sharing options...
Tharwat Posted February 29, 2016 Share Posted February 29, 2016 (if (= (type example) 'STR) (do this) (otherqise do this)) Quote Link to comment Share on other sites More sharing options...
Grrr Posted February 29, 2016 Share Posted February 29, 2016 Hello Sorry for my noobish question: What does the apostrophe stand for? Quote Link to comment Share on other sites More sharing options...
Tharwat Posted February 29, 2016 Share Posted February 29, 2016 What does the apostrophe stand for? Represents a Symbol, Read THIS Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted February 29, 2016 Share Posted February 29, 2016 What does the apostrophe stand for? Please refer to my tutorial: The Apostrophe and the Quote Function The apostrophe ensures that the quoted characters are not evaluated and therefore passed to the type function as a symbol; however, as per my tutorial, note that the apostrophe/single-quote is used to declare any AutoLISP data as a literal, and is not limited to symbols. Quote Link to comment Share on other sites More sharing options...
Grrr Posted February 29, 2016 Share Posted February 29, 2016 Thank you both of you "autodesk expert elite" ! Quote Link to comment Share on other sites More sharing options...
Tharwat Posted February 29, 2016 Share Posted February 29, 2016 Thank you both of you "autodesk expert elite" ! I am not not yet there. Quote Link to comment Share on other sites More sharing options...
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.