What does "Set variable" action do?

Discussions about iCompta on macOS
Post Reply
zh_olga
Posts: 76
Joined: 19 November 2013, 21:48

What does "Set variable" action do?

Post by zh_olga »

Hi Angeman
What does an action in rules "Set variable" do?
User avatar
Angeman
Administrateur
Posts: 2302
Joined: 28 December 2008, 21:28
Location: Toulouse, France
Contact:

Re: What does "Set variable" action do?

Post by Angeman »

It saves the value of something into a "variable" that you can then use in the following actions of your rule.
zh_olga
Posts: 76
Joined: 19 November 2013, 21:48

Re: What does "Set variable" action do?

Post 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?
User avatar
Angeman
Administrateur
Posts: 2302
Joined: 28 December 2008, 21:28
Location: Toulouse, France
Contact:

Re: What does "Set variable" action do?

Post by Angeman »

You can't create a rule to modify the comment of a split currently sorry.
zh_olga
Posts: 76
Joined: 19 November 2013, 21:48

Re: What does "Set variable" action do?

Post 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?
User avatar
Angeman
Administrateur
Posts: 2302
Joined: 28 December 2008, 21:28
Location: Toulouse, France
Contact:

Re: What does "Set variable" action do?

Post 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"
Post Reply