Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Value Primitives : tint.first

Syntax

#(tint.first,%s,%match)
#(tint.first,%s,%match,%retain)

%s is a value to be searched for %match. If %match is found in %s, then everything before %match in %s will be returned, otherwise, all of %s will be returned. If %retain is specified, then the code or data attribute in %s will be carried into the result. Otherwise, the result is all data.

Examples

#(tint.first,abcdef,c)
ab
#(tint.first,abcabc,c)
ab
#(tint.first,abcdef,g)
abcdef
#(tint.first,abcdef,d,y)
abc