How to use conditionals

i want to use this

{{if this.isFast “zoooom” “putt-putt-putt”}}
but i dont know how to change this parameter (isFast) to see “zoooom”. how i can change isFast variable and assign this to true?

Generally templates are used for watching variables but not for setting any variables. So the general approach here would be to add a computed property in your component:

import Component from '@ember/component';
import { computed } from '@ember/object';

export default Component.extend({
  speedString: computed('isFast', function() {
    return this.isFast ? 'zoooom' : 'putt-putt-putt';
  })
}

and then use that string in your component template:

{{fastString}}

Does that help? Also, welcome to the Ember forums!