Announcement

Collapse
No announcement yet.

Actinic/Script Repository

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Actinic/Script Repository

    Hi,

    Does anyone know if there is a website with java, php or other scripts that are used with actinic? If not, maybe its something actinc could host, a kind of repository that we could use.

    I need a php script that checks an actinc variable and adds a £ or p depending upon if its a 0.00 or 00 format.

    Thanks,
    Paul.

    #2
    Can anybody supply such a script or point out where it can be got please.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Try (completely untested)
      Code:
      <actinic:block php="true">
      $myvar = '<Actinic:Variable Name="mycustomvar" encoding="perl" selectable="false" />';
      if ( $myvar != '' )			// only do if variable contains something
      	{
      	if ( strstr($myvar, '.') )	// if there's a decimal point
      		{
      		echo '£' . $myvar;
      		}
      	else
      		{
      		echo $myvar . 'p';
      		}
      	}
      </actinic:block>
      P.S. I recommend Teach Yourself PHP in 24 Hours by Matt Zandstra - published by SAMS. It's only £18.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment

      Working...
      X