A simple if then that adds 1 to an integer variable needed

Rivermaker coolpsychology at gmail.com
Tue Nov 3 13:34:49 UTC 2009


SCRATCH that! I'm an idiot. Your suggestion works perfectly. I had the
counter inline within another skip --- I was skipping it! Doh.

Thank you again!

Mike

(And I was able to create a script that displayed the value of the
counter too!)




On Nov 2, 8:45 pm, ben robinson <baltimore.... at gmail.com> wrote:
> you are very, very close!
>
> under the View drop-down menu, select Script, then click on the User tab at
> the bottom of the Script window.
> here you will type:
> Dim count as Integer
>
> in your inline, prior to your text object just type:
> count = count+1
> If count = 5 Then Goto Label1
>
> and put your Label1 object after your text object.  that should do it.
>
> ben
>
> On Mon, Nov 2, 2009 at 2:17 PM, Rivermaker <coolpsychol... at gmail.com> wrote:
>
> > Hi,
>
> > I need a really short script that, I'm sure, is embarrassingly simple
> > for those with coding skills. I'm not one of you! Please be kind.
>
> > All I want to do is to skip a text object the 5th (and last) time
> > through a procedure. I need to create an integer variable and add 1 to
> > it each time through so that eventually, with an InLine object, I can
> > tell it to...
>
> > If count = 5 GoTo Label1    'this is to get it to skip the text object
>
> > Else count = count + 1      'this is to add 1 to it each time through
>
> > In addition to the above, I need help creating the variable. I am
> > assuming that I can't create (declare?) it within the same InLine
> > object because that would reset its value to zero each time
> > through...So I'm thinking that earlier on, say at the start, I have to
> > write this:
>
> > Dim count as integer
>
> > Am I close?
>
> > Can anybody help me out?
>
> > Many thanks,
>
> > Mike
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en
-~----------~----~----~----~------~----~------~--~---



More information about the Eprime mailing list