Page 1 of 1
"The Result" and "It"
Posted: Sun Oct 07, 2012 1:58 pm
by teacherguy
Is there a tutorial or discussion anywhere regarding the similarities and differences between "the result" and "it"?
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 2:39 pm
by Klaus
No, just what the dictionary states.
the result = a function
IT = a variable
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 2:48 pm
by teacherguy
OK. Well then for example if I use GET with a URL and then say
put it into myVariable
or
put the result into myVariable
would I expect the same?
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 3:05 pm
by Klaus
I have no idea what you exspect, but I wouldn't exspect the same!
Why don't you try this yourself?
...
get url("
http://kfjsdlkfjsdklfjsdfkjsdlfkjsdf/indexx.html")
answer "it: " && it & CR & "result:" && the result
...
## or a valid server, but an unvalid page
get url("
http://noserver.com/indexx.html")
answer "it: " && it & CR & "result:" && the result
...
## or a valid server, and a valid page
get url("
http://runrev.com")
answer "it: " && it & CR & "result:" && the result
....
And SEE the difference!
Best
Klaus
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 3:17 pm
by teacherguy
Thanks Klaus, this is what I have been working my way through recently in communicating with google docs. I had been careless in the use of "the result" and "it."
So let's see if I have this:
"the result" is empty when we are able to get "it"
and conversely
"the result" will contain some information (from the server?) when get fails and "it" is therefore empty
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 3:19 pm
by Klaus
Yep, something like this...

Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 3:25 pm
by teacherguy
Thanks Klaus, you are always very patient and helpful.
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 3:29 pm
by Klaus
You should see my monthly bills for "Valium"!

Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 3:56 pm
by Dixie
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 5:00 pm
by Thierry
Klaus wrote:You should see my monthly bills for "Valium"!

Does it really work ?
Thierry
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 5:03 pm
by Klaus
Thierry wrote:Does it really work ?
Thierry
Not really, but at least it deters me from getting abusive!

Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 5:22 pm
by jacque
teacherguy wrote:
So let's see if I have this:
"the result" is empty when we are able to get "it"
and conversely
"the result" will contain some information (from the server?) when get fails and "it" is therefore empty
Well, not always. They contain different types of info. In an ask dialog, for example, the result will contain the name of the button clicked and "it" will contain the text the user enters.
The result generally contains error info (but there are exceptions.) The "it" variable generally contains data retrieved from a source.
Re: "The Result" and "It"
Posted: Sun Oct 07, 2012 6:56 pm
by teacherguy
Thanks Jacque. Yes I've noticed that when I query google docs "it" will sometimes include errors (like failure to authenticate). So that is when I started thinking that "the result" and "it" were the same thing.