• Login
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.
  • T
    Tha BeatBeest
    last edited by Jan 31, 2016, 3:08 AM

    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
    • S
      Scott Sumner
      last edited by Jan 31, 2016, 1:19 PM

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

      1 Reply Last reply Reply Quote 0
      • T
        Tha BeatBeest
        last edited by Jan 31, 2016, 9:21 PM

        What would you recommend ?

        C 1 Reply Last reply Feb 1, 2016, 12:02 AM Reply Quote 0
        • C
          Claudia Frank @Tha BeatBeest
          last edited by Feb 1, 2016, 12:02 AM

          @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
          2 out of 4
          • First post
            2/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors