I have an expression box in a repeating table that uses one function; postion() to number the rows in the table. Each row in the table represents one day of travel. There can be 1 or more rows in the table.
The problem: I need to determine which day is the first day of travel and which is the last day. Obviously the first day of travel is easy because that row always equals 1. The last day of travel will equal the total number of travel days which is another textbox field that gets its value from the difference between 2 dates using Alec Pojidaev's method found here: http://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/
Therefore I want to compare the row # displayed in my expression box (formated as text) to the travelDays field (text/string data type). If they equal, I want to set a value to another field based on this rule.
How do I write a rule to compare an expression box to a text box field?