Joined: 05 Sep 2012
Location: United States
Online Status: Offline
Posts: 177
Topic: boolean Posted: 14 Feb 2013 at 10:47am
i cannot figure out why i keep getting the "boolean required here" on this code
If {ELaborDist.det} = "E" Then Sum({ELaborDist.amount}) Else If {ELaborDist.det} = "D" Then -(Sum({ELaborDist.amount})) And If {ELaborDist.det} = "T" And {ELaborDist.det} = "D" Then Sum({ELaborDist.amount}) Else If {ELaborDist.det} = "T" And {ELaborDist.det} = "C" Then -(Sum({ELaborDist.amount}))
Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Posted: 14 Feb 2013 at 11:56am
Try something like this:
If {ELaborDist.det} = "E" Then Sum({ELaborDist.amount}) Else If {ELaborDist.det} = "D" Then Sum({ELaborDist.amount}) * -1 And If {ELaborDist.det} = "T" And {ELaborDist.det} = "D" Then Sum({ELaborDist.amount}) Else If {ELaborDist.det} = "T" And {ELaborDist.det} = "C" Then Sum({ELaborDist.amount}) * -1
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum