Variable doesn't work on Action; click Mouse, How to use check existence

Hi,
I have 2 questions here for variable with click mouse and how to use check existence.

  1. Variable with click action

I have a table to store Xpath by rows.
And I want to use them as variable when click action.

But variable doesn’t work at all.

  1. How to use check existence
    This is my ideal flow.
    How should I use check existence?
    Video or some demo is really helpful.

[Ideal flow]

  1. Get value with Excel
  • each cell has file name, file path, xpath
  1. Open web page
  2. For each
  3. Check existence of ${file name}
    5-a. if it exists
  • click button on web (xpath); open local folder
  • type ${file path}
  • type {ENTER}
  • select ${xpath} from drop down
    5-b. if it doesn’t exist
    end: continue next file name

Anyone could help me?
Thank you!

You can check the detail property of the original event to get the click count. If the click count is 0, you know that the “click” came from the keyboard. If the click count is greater than 0, you know that the “click” came from the mouse. If the event detail is === 0 , it was fired by keyboard.