Zabaware Support Forums
Zabaware Forums => General Discussion => Topic started by: lightspeed on September 04, 2014, 12:27:13 pm
-
I am wondering if anyone knows for sure the correct way to get the user name response to work correctly within a sentence in a plug in response . :)
example
Randomize
Select Case int(rnd()*8)
Case 1
GetResponse = "It's a nice day<user name> isn't it? "
Case 2
GetResponse = " "
Case 3
GetResponse = " "
Case 4
GetResponse = " "
Case 5
GetResponse = " "
Case 6
GetResponse = " "
Case 7
GetResponse = " "
Case 8
GetResponse = " "
End Select
HalBrain.ReadOnlyMode = False
End If
would this be correct to get hal to say my user name in a response back in a plug in or is is all one word >username<
or will this work that way at all?
???
-
Hi Lightspeed.
Hal has a table called hello1 that does the same thing as what you're trying to do.
but if you want to practice your code then
Randomize
Select Case int(rnd()*2
Case 1
GetResponse = "It's a nice day " & username & " isn't it? "
Case 2
GetResponse = " "
End Select
if you want to put it in a table then you can use the <username> tag within the sentence or statement.
-
And don't forget the second parenthesis.
-
thanks for the response, from you both and I will try it out in a test one when I have time , gotta pay bills today and get groceries etc. and i'll remember thanks to art about the second parenthesis ! :) ;)
Art know's I'm forgetful !