ThoroTech    ThoroTech Racing    ThoroTech Racing  Hop To Forum Categories  EquiSim - Using    How to code an "OR" in FV
Go
New
Find
Notify
Tools
Reply
  
How to code an "OR" in FV
 Login/Join 
Graded Stakes
Posted
A week or so ago I posed the question of how to do "OR" in FV - here's how:

#GREATER($ppBarShoesOffB + $ppBarShoesOnB + $ppBlinkersOffB + $ppBlinkersOnB + $ppFrontWrapsOffB +
$ppFrontWrapsOnB + $ppLasixOffB + $ppLasixOnB + $ppNasalOffB + $ppNasalOnB, 0)

The above expression returns "1" (true) if any combination of the variables within the parentheses are true, or "0" if none are true.

Hope this helps...

Lou
 
Posts: 284 | Location: Chicago Area | Registered: March 28, 2004Reply With QuoteReport This Post
Graded Stakes
Posted Hide Post
Addendum to the above:

The same idea also works with expressions, e.g.

#GREATER((#GREATER(whatever) + #GREATER(sometingelse)), 0)

Have fun...

Lou
 
Posts: 284 | Location: Chicago Area | Registered: March 28, 2004Reply With QuoteReport This Post
Steward
Graded Stakes
Picture of Nathan M.
Posted Hide Post
Very nice Lou. Thanks!
 
Posts: 1981 | Location: North East OH | Registered: July 23, 2002Reply With QuoteReport This Post
Graded Stakes
Posted Hide Post
quote:
Originally posted by Lou G:
A week or so ago I posed the question of how to do "OR" in FV - here's how:

#GREATER($ppBarShoesOffB + $ppBarShoesOnB + $ppBlinkersOffB + $ppBlinkersOnB + $ppFrontWrapsOffB +
$ppFrontWrapsOnB + $ppLasixOffB + $ppLasixOnB + $ppNasalOffB + $ppNasalOnB, 0)

The above expression returns "1" (true) if any combination of the variables within the parentheses are true, or "0" if none are true.

Hope this helps...

Lou: I tried to write this in a Horse Template by putting (0) after each variable but it did not work. Do you know why it wouldn't work? Should add that I am attempting to get last paceline since I am in horse template.

Freddy

Lou
 
Posts: 273 | Location: Knoxville,TN | Registered: October 12, 2003Reply With QuoteReport This Post
Graded Stakes
Posted Hide Post
Freddy,

If you mean (0) instead of [0], then that's why it didn't work - otherwise, this may be better answered by Nathan...

Lou
 
Posts: 284 | Location: Chicago Area | Registered: March 28, 2004Reply With QuoteReport This Post
Graded Stakes
Posted Hide Post
Lou G

I used [0] but I think the reason I am getting zeros is because there is no equip change on the whole card. I will check this but thanks for responding.

Freddy
 
Posts: 273 | Location: Knoxville,TN | Registered: October 12, 2003Reply With QuoteReport This Post
  Powered by Social Strata  
 

ThoroTech    ThoroTech Racing    ThoroTech Racing  Hop To Forum Categories  EquiSim - Using    How to code an "OR" in FV

© 2002