Page 1 of 1

example of IF

Posted: Tue Apr 20, 2021 11:01 am
by codetwist
Hello.
Is there any example of the IF command and how we use it?
I want to extract some data IF the header have specific text is possible? if yes how to?
Thank you

Re: example of IF

Posted: Wed Apr 21, 2021 5:44 pm
by webmaster
If this is an element on a page, such as a title, you first need to create a selector that selects this element (suppose you call it Header), and then use the following code:

Code: Select all

Sequence.IfAny
   ·  Select.Header
   ·  [ifAny]
   ·  Sequence.Empty
Then just replace [ifAny] with whatever actions extract from the page, such as an extract action:

Code: Select all

Sequence.IfAny
   ·  Select.Header
   ·  extract
         header
            Select.Header
         description
            Select.Description
         price
            Select.Price
   ·  Sequence.Empty

Мешки для мусора с завязками

Posted: Sat Nov 11, 2023 10:41 am
by Yasuo_pimn
Ассортимент мусорных мешков с завязками
мусорные пакеты с завязками http://meshki-dlya-musora-s-zavyazkami.ru/.