Bot-Factory 602 Posted November 14, 2010 Report Share Posted November 14, 2010 Hi. Does a command like "create table from file" automatically returns a True? So that I can use it in an IF? if create table from filethen bla1else bla2 ThanksDan Quote Link to post Share on other sites
MiriamMB 63 Posted November 14, 2010 Report Share Posted November 14, 2010 Hi. Does a command like "create table from file" automatically returns a True? So that I can use it in an IF? if create table from filethen bla1else bla2 ThanksDan Yes, it returns true no matter what. Quote Link to post Share on other sites
Bot-Factory 602 Posted November 14, 2010 Author Report Share Posted November 14, 2010 Thanks Lilly, but it will return False if the File used within "create table from file" doesn't exist? Dan Yes, it returns true no matter what. Quote Link to post Share on other sites
IRobot 43 Posted November 14, 2010 Report Share Posted November 14, 2010 but it will return False if the File used within "create table from file" doesn't exist?How are you getting a return value from this command? If you set a variable to the table in the "create table from file" command, it will contain nothing if the file does not exist, and Ubot will throw an error. See the discussion here on possible solutions to return values and error/exception handling:http://ubotstudio.com/forum/index.php?/topic/5338-exception-handling/ Quote Link to post Share on other sites
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.