View previous topic :: View next topic |
Author |
Message |
KennyT
Joined: 02 Aug 2005 Posts: 318
|
Posted: Tue Sep 13, 2011 9:19 am Post subject: Daft question re conditional breakpoints in SDBG |
|
|
I know that:
< means "less than"
> means "greater than"
== means "equals"
but
what means "does not equal"?
I've tried <> but that doesn't work.
Sorry for asking such a n00b question, but I can't see it in the help!
K |
|
Back to top |
|
 |
skeptic
Joined: 22 Mar 2009 Posts: 14
|
Posted: Tue Sep 13, 2011 12:10 pm Post subject: |
|
|
Try /= |
|
Back to top |
|
 |
KennyT
Joined: 02 Aug 2005 Posts: 318
|
Posted: Tue Sep 13, 2011 12:18 pm Post subject: Re: |
|
|
Thanks...but nope, that doesn't seem to work. Any other ideas?
K |
|
Back to top |
|
 |
skeptic
Joined: 22 Mar 2009 Posts: 14
|
Posted: Tue Sep 13, 2011 2:31 pm Post subject: |
|
|
I have just tested
IF(X/=Y)THEN
print *,'not equal'
ELSE
print *,'equal'
END IF
It works. Try it again |
|
Back to top |
|
 |
KennyT
Joined: 02 Aug 2005 Posts: 318
|
Posted: Tue Sep 13, 2011 2:33 pm Post subject: Re: |
|
|
skeptic wrote: | I have just tested
IF(X/=Y)THEN
print *,'not equal'
ELSE
print *,'equal'
END IF
It works. Try it again |
How did you manage that as a conditional breakpoint in SDBG?
K |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Sep 13, 2011 2:48 pm Post subject: |
|
|
!= works OK for me. |
|
Back to top |
|
 |
KennyT
Joined: 02 Aug 2005 Posts: 318
|
Posted: Tue Sep 13, 2011 3:03 pm Post subject: Re: |
|
|
PaulLaidler wrote: | != works OK for me. |
Nope, I still get "stopped" when IEVENT is 10, if I set a conditional break:
IEVENT!=10
BTW, I'm still using FTN v5.5, SDBG v5.4. Is it something that was fixed in v6?
K |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Tue Sep 13, 2011 7:45 pm Post subject: |
|
|
Try
!(k==10) |
|
Back to top |
|
 |
KennyT
Joined: 02 Aug 2005 Posts: 318
|
Posted: Wed Sep 14, 2011 9:18 am Post subject: Re: |
|
|
PaulLaidler wrote: | Try
!(k==10) |
Caramba! That works, thanks.
K |
|
Back to top |
|
 |
|