Hello Shawn,
I have passed the values in "", here is what the code is like:
$keyword = strtolower ("{query}");
$urls = [
'developers' => '1',
'analytics viewer' => '2'
];
if ( array_key_exists( $keyword, $urls ) ) {
exec( "open urlhere?id={$urls[$keyword]}" );
}
There is more code below it and I have changed the URL because its private, but that part works. Things with 1 entire word works fine, but if I put analytics viewer in alfred it does nothing.
Regards,