Author Topic: Resetting constants with constants  (Read 671 times)

Tags:
  • All members
  • Posts: 20
  • Karma: +0/-0
  • Gender: Male
Resetting constants with constants
« on: 28 Sep 2021, 16:26 »
Hi,

I am trying to use a constant, that I want to be blank until I set it to a different value. This is easy, I just added a constant and left the initial value blank. I then set up a trigger using "set user variable", in the name I put the constant name and in the value, I put the value I required.

Now I have the problem of returning the constant value to blank, until I want to set another value.

Does anyone know if there is a way to set a trigger to return the constant to its initial value, or if there is a way to set the user variable to blank?

Thanks for any help.

  • Tim Vetrov
  • Administrator
  • Posts: 4678
  • Karma: +20/-0
  • Gender: Male
*
Re: Resetting constants with constants
« Reply #1 on: 28 Sep 2021, 16:53 »
Each "Set user variable" trigger action changes its value.
You can set it to something else than "the value" instead of blank to avoid misunderstanding.
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 20
  • Karma: +0/-0
  • Gender: Male
Re: Resetting constants with constants
« Reply #2 on: 28 Sep 2021, 23:00 »
Hi Tim,

Thanks for your reply.

However, for what I want to do, it really needs to be blank. I can set the initial value to blank, but after setting to a different value, I cannot find a way to reset it to the initial value, or just to set it to blank again.

Is it possible?

  • Tim Vetrov
  • Administrator
  • Posts: 4678
  • Karma: +20/-0
  • Gender: Male
*
Re: Resetting constants with constants
« Reply #3 on: 29 Sep 2021, 06:58 »
You can use "" as value for Set User Variable trigger action.
I'm happy to help Monday - Friday, 08:00-18:00 GMT
Буду рад помочь с понедельника по пятницу, 08:00-18:00 GMT

  • All members
  • Posts: 20
  • Karma: +0/-0
  • Gender: Male
Re: Resetting constants with constants
« Reply #4 on: 29 Sep 2021, 12:42 »
Hi Tim

Unfortunately that does not work, it just puts "" as the user variable.

However, I have managed to find a work around.

Thanks for your help.