alibaba([text])
text : | string for search |
alibaba
alibaba Motor N20
This function, named alibaba
, is designed to open a web page for searching components on Alibaba. It is part of the SolidGeometry library and was introduced in version 5.0. The function takes a single optional input parameter, text
, which is a string used for the search query.
text
using the getfuncparams
function. If no input is provided, it defaults to 'www'.forcewww
is set to true
, ensuring that a web page is opened regardless of the input.tab
is defined, mapping the string 'www' to the Alibaba homepage URL.sprintfhyperlinktab
to format the table into a hyperlink string outstr
.text
matches any entry in the first column of tab
using contains
and find
. If a match is found, ind
is set to the index of the first match.forcewww
is false
and no match is found, or if text
is empty, the function prints a message suggesting search terms and exits.tab
is opened using webTL
.forcewww
is true
, the function constructs a search URL using the input text
and opens it with webTL
.