"The Result" and "It"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
"The Result" and "It"
Is there a tutorial or discussion anywhere regarding the similarities and differences between "the result" and "it"?
Re: "The Result" and "It"
No, just what the dictionary states.
the result = a function
IT = a variable
the result = a function
IT = a variable
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: "The Result" and "It"
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?
put it into myVariable
or
put the result into myVariable
would I expect the same?
Re: "The Result" and "It"
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

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
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: "The Result" and "It"
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
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"
Yep, something like this... 

-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: "The Result" and "It"
Thanks Klaus, you are always very patient and helpful.
Re: "The Result" and "It"
You should see my monthly bills for "Valium"! 

Re: "The Result" and "It"
Does it really work ?Klaus wrote:You should see my monthly bills for "Valium"!

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: "The Result" and "It"
Not really, but at least it deters me from getting abusive!Thierry wrote:Does it really work ?![]()
Thierry

Re: "The Result" and "It"
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.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
The result generally contains error info (but there are exceptions.) The "it" variable generally contains data retrieved from a source.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: "The Result" and "It"
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.