Page 1 of 1

What does "Set variable" action do?

Posted: 26 February 2018, 07:44
by zh_olga
Hi Angeman
What does an action in rules "Set variable" do?

Re: What does "Set variable" action do?

Posted: 26 February 2018, 11:47
by Angeman
It saves the value of something into a "variable" that you can then use in the following actions of your rule.

Re: What does "Set variable" action do?

Posted: 05 December 2021, 15:49
by zh_olga
Hi Angeman
I’m not understanding completely how does it work
Could you show please?

I’m using rules now: I want certain transactions to have “fixed” written in Splits comment field. Is it possible to use “set variable” foe this?

Re: What does "Set variable" action do?

Posted: 05 December 2021, 17:16
by Angeman
You can't create a rule to modify the comment of a split currently sorry.

Re: What does "Set variable" action do?

Posted: 07 January 2024, 23:28
by zh_olga
Hi Cyril,
so what does set variable do?
I’m not understanding completely how does it work
Could you show an example please?

Re: What does "Set variable" action do?

Posted: 08 January 2024, 09:27
by Angeman
It's just a temporary buffer, for example with a transaction named "Groceries" :
  • Set variable "x" to the contents of Name
    => x = "Groceries"
  • Set name to "Test"
    => name of the transaction is now "Test"
  • Set comment to the variable "x"
    => comment of the transaction is now "Groceries"