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 3.2k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          Tha BeatBeest
          last edited by

          What would you recommend ?

          Claudia FrankC 1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors