Community
    • Login

    How to use variables in a sentence and be able to generate the sentence within a strict patern (function) and range ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 3 Posters 2.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tha BeatBeestT
      Tha BeatBeest
      last edited by

      So I’ve been testing the macro function so far, but I couldn’t find exactly what I wanted so I hope someone know how to deal with this. The title basicly states the result where I’m looking for, but I’m going to give an example to make this more clear.

      Example sentence: “Function 2x: when x = [variable A] ; y = [Variable B]”
      Example paterns: [Variable A] = x ; [Variable B] = 2x
      Example range: -2 <= x >= 2 with +1 spead inbetween.

      Result in notepad:

      “Function 2x: when x = -2 ; y = -4”
      “Function 2x: when x = -1; y = -2”
      “Function 2x: when x = 0 ; y = 0”
      “Function 2x: when x = 1 ; y = 2”
      “Function 2x: when x = 2 ; y = 4”

      Thanks for your time !

      1 Reply Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner
        last edited by

        I would certainly do this with a programming language, not Notepad++.

        1 Reply Last reply Reply Quote 0
        • Tha BeatBeestT
          Tha BeatBeest
          last edited by

          What would you recommend ?

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Tha BeatBeest
            last edited by

            @Tha-BeatBeest

            because you asking that kind of question I have to assume that you don’t know any programming or scripting language at all or
            that you want to achieve something together with npp which you didn’t mentioned yet.
            There is no one and only programming/scripting language. Every language has its strength and weakness and it simply depends on
            what you really want to achieve.

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors