Welcome to openkapow Sign in | Join
in Search
.

[How to?] Last tag number based on user input?

Last post 03-04-2007, 12:31 AM by ppow. 2 replies.
Sort Posts: Previous Next
  •  02-28-2007, 11:57 PM 8435

    [How to?] Last tag number based on user input?

    I have a case where I do a query, but I do not know how many answers I will get.
    So I have to loop through a variable number of tags.

    One way to go is ask the user to decide how many times he wants to loop
    (assuming the user knows the number of query answers).

    I have tried to use "Last Tag Number" = RSSInput.value1 "From First".
    My value1 is equal to 2, but it does not seem to work.
    Only numbers seem to be accepted.

    What is the way to do this?


    An other question: is there a way to go around errors when a tag is not found?
    I put "On error, skip branch" in the "For each tag" action, but this still gives an error.

    [edit] To explain more what I want to do. It is very similar to the tutorial on your site with Digg.
    The main difference is that the number of answers that I want to return is chosen by the user (for example: first 3 answers),
    and that the search query might return 1 or zero answer, so I have to handle the case where a tag for the answer is not found.


  •  03-01-2007, 4:33 AM 8446 in reply to 8435

    Re: [How to?] Last tag number based on user input?

    As my tag line indicated, everything is possible in a robot. It's just a matter of figuring out how to do it.

    In this case, what you have to do it custom design your own looping, which will break once a given criteria is meet. This service show how it can be done:

    http://openkapow.com/files/folders/tutorials_and_examples/entry8445.aspx 

    http://service.openkapow.com/KVAKapowTech/userdefinedmaxloop.rest

    As you will see, it is not simple, but doable. And actually it solves a previous issue posted regarding exiting a loop based on a condition. Anyway I hope you find this service/robot useful.

    Kind regards,

    Kenneth Andersen

    Kapow Support Team


    The question is not:
    "Is it possible for a robot to ..." but rather:
    "How do I setup a robot to ..."
  •  03-04-2007, 12:31 AM 8533 in reply to 8446

    Re: [How to?] Last tag number based on user input?

    Thank-you, this was very helpful.

View as RSS news feed in XML
.
Copyright 2006, 2007 KapowTech.com All Rights Reserved Company | Contact | Terms | Privacy