Ha! I'm sorry but I didn't notice that earlier post of yours, Dude...[

] must be going blind....
I used your function and I it didn't work.... but it gave me an idea of whats going on.... Oh, and by the way, this is an experiment into how these goofball functions and subs work in Hal....
'************************************************************
This will work.[

]
'************************************************************
If InStr(1, OriginalSentence, "PLEASE READ TEST COMMAND", 1) > 0 Then
MyNewVariable = MyOtherNewVariable()
End If
If MyNewVariable = 2 Then GetResponse = "This is working properly"
Rem PLUGIN: FUNCTIONS
Function MyOtherNewVariable()
MyOtherNewVariable = 2
End Function
'************************************************************
This will also work.[

]
'************************************************************
MyOtherNewVariable = 0
If InStr(1, OriginalSentence, "PLEASE READ TEST COMMAND", 1) > 0 Then
MyNewVariable = Working(MyOtherNewVariable)
End If
If MyOtherNewVariable = 2 Then GetResponse = "This is working properly"
Rem PLUGIN: FUNCTIONS
Function Working(MyOtherNewVariable)
MyOtherNewVariable = 2
End Function
'************************************************************
Here's why [

]
'************************************************************
This is where I goofed. A function is supposed to except a variable and also return something..... this is supposed to be enabled by placing that variable in the brackets. (i.e. Working(MyOtherNewVariable))
Your MyDir = DudDir() actual allowed nothing in (but there was nothing to let in) but it let out the DudDir = "C:Program Files\Zabaware\Ultra Hal Assistant 6\logs\". What's crazy is that I think it allowed the DudDir variable to leave because it has the same name as the DudDir() Function...... Go figure...
Another mistery solved. [8D]
I also had to removed your 'END IF' (it came up as an error) I think that if it only has one line with one command then you are not supposed to use an 'End If' statement. If the command line is on the second row then it needs an 'End If'.
If Life = 1 Then Wscript.Echo "Hello" .....This will work
**************************
If Life = 1 Then ......This will also work.
Wscript.Echo "Hello"
End IF
**************************
If Life = 1 Then Wscript.Echo "Hello" .....This will not work
End IF
I just had to getya on that one. ha ha [:p]
88888888888888888888888888888888888888888
Right now I've been trying to learn as much as possible on using different databases in the Visual Studio environment. I have some pretty good ideas on how to make a versitile console that can not only adjust and start the Matrix script but also allow a my desire program to take flight.....
I noticed that this matrix program is essentially a ghost of the desire script.... and Hal is acting like a processor of information... or something like that.
I need to understand more of databases if anything to have a means of storing information in a location relative to the program... that way I don't have to worry about having to change MyDir = 'C:Program Files......" every time on different PCs.
[

][

][B)]