Guillotin ( Victim )
Removes the first value of a list
Average rating: 4.4 (23 votes) Log in to vote
Christoph Kaufmann - Show more from this author
CLK.ch http://clk.ch |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
Whenever you have a list of values in a variable and need to go through them in a loop, you can always use getvalue ( $list ; 1 ) and use the Guillotin function afterwards to shorten the list. Don't forget to exit the loop if ( isempty ( $list ) ).
The result of Guillotin ( "Chest¶Legs" ) is "Legs¶" rather than "Legs". However, the valuecount function returns 1 in both cases.
If you use Guillotin ( "Legs¶" ) in the next round, the result will be empty and you can safely test the state using The isempty function.
Comments
Fabrice Nordmann, 1-more-thing Feb 10, 2015 |
||
The result is not as documented. RightValues () will append a ¶. Guillotin ( "Head¶Chest¶Legs" ) = "Chest¶Legs¶" |
||
Christoph Kaufmann, CLK.ch Feb 10, 2015 |
||
Thank you for the hint, the documentation ist adapted. | ||
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.