• 140 views | 2 messages Discussion: LEAP
    Topic: Using leap script editor to write a code.Subscribe | Previous | Next
  • Ahmed Alaadin 3/3/2019

    what to write to make leap understand that i want to set a variable to a specific value. Those were my first lines. all were executed except setting the value( the last line ) . Can you help me out?
    ActiveArea = "New Freedonia"
    ActiveScenario = "Current Accounts"
    ActiveBranch = "\Demand\Households\Urban\Cooking\electric Stoves"
    ActiveVariable = "Demand Cost"
    Expression = "50"

  • Taylor Binnington 3/13/2019
      Best Response

    1 Like

    Hi Ahmed,

    Try this, using LEAP's Script Editor:

    ActiveScenario = "Current Accounts"
    LEAP.Branch("Demand\Households\Urban\Cooking\Electric Stoves").Variable("Demand Cost").Expression = 50

    Taylor